makeAccessible

open fun makeAccessible(ctor: Constructor<out Any>)

Make the given constructor accessible, explicitly setting it accessible if necessary. The setAccessible(true) method is only called when actually necessary, to avoid unnecessary conflicts.

Parameters

ctor

the constructor to make accessible

See also

java.lang.reflect.Constructor