safeNewInstance

open fun <T> safeNewInstance(@NotNull constructor: Constructor<T>, args: Array<Any>): T

safe create instance

Return

instance

Parameters

constructor

create instance

args

args

<T>

instance type

Throws

InvocationTargetException

InstantiationException

IllegalAccessException