Package io.netty.util.internal
Class ReflectionUtil
java.lang.Object
io.netty.util.internal.ReflectionUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic ThrowabletrySetAccessible(AccessibleObject object, boolean checkAccessible) Try to callAccessibleObject.setAccessible(boolean)but will catch anySecurityExceptionandInaccessibleObjectExceptionand return it.
-
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.
-