- java.lang.Object
-
- io.netty5.util.internal.ReflectionUtil
-
public final class ReflectionUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ThrowabletrySetAccessible(AccessibleObject object, boolean checkAccessible)Try to callAccessibleObject.setAccessible(boolean)but will catch anySecurityExceptionandInaccessibleObjectExceptionand return it.
-
-
-
Method Detail
-
trySetAccessible
public static Throwable trySetAccessible(AccessibleObject object, boolean checkAccessible)
Try to callAccessibleObject.setAccessible(boolean)but will catch anySecurityExceptionandInaccessibleObjectExceptionand return it. The caller must check if it returnsnulland if not handle the returned exception.
-
-