Remove USE_PARAMETER #35
@ -57,8 +57,9 @@ public final class ReflectiveEventHandler implements EventHandler {
|
|||||||
? method.getAnnotation(Priority.class).value()
|
? method.getAnnotation(Priority.class).value()
|
||||||
: defPriority;
|
: defPriority;
|
||||||
|
|
||||||
// Allow access if the method is non-public
|
// Try to allow access if the method is not accessible
|
||||||
method.setAccessible(true);
|
if (!method.canAccess(Modifier.isStatic(method.getModifiers()) ? null : listener))
|
||||||
|
method.setAccessible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user