Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Remove redundant null check in VelocityMethodScanner
Dieser Commit ist enthalten in:
Ursprung
cfae542dd2
Commit
3d3d6adf04
@ -173,12 +173,7 @@ public class VelocityEventManager implements EventManager {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int postOrder(@NonNull Object listener, @NonNull Method method) {
|
public int postOrder(@NonNull Object listener, @NonNull Method method) {
|
||||||
Subscribe annotation = method.getAnnotation(Subscribe.class);
|
return method.getAnnotation(Subscribe.class).order().ordinal();
|
||||||
if (annotation == null) {
|
|
||||||
throw new IllegalStateException(
|
|
||||||
"Trying to determine post order for listener without @Subscribe annotation");
|
|
||||||
}
|
|
||||||
return annotation.order().ordinal();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren