Package io.netty.util.internal
Class ReflectionUtil
java.lang.Object
io.netty.util.internal.ReflectionUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static RuntimeException
static Throwable
trySetAccessible
(AccessibleObject object, boolean checkAccessible) Try to callAccessibleObject.setAccessible(boolean)
but will catch anySecurityException
andInaccessibleObjectException
and return it.
-
Constructor Details
-
ReflectionUtil
private ReflectionUtil()
-
-
Method Details
-
trySetAccessible
Try to callAccessibleObject.setAccessible(boolean)
but will catch anySecurityException
andInaccessibleObjectException
and return it. The caller must check if it returnsnull
and if not handle the returned exception. -
handleInaccessibleObjectException
-