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