Listener-Level Properties #13

Merged
kske merged 5 commits from f/listener-level-properties into develop 2021-03-17 07:56:22 +01:00
Showing only changes of commit f74b953db8 - Show all commits

View File

@ -179,7 +179,7 @@ public final class EventBus {
polymorphic = listener.getClass().getAnnotation(Polymorphic.class).value(); polymorphic = listener.getClass().getAnnotation(Polymorphic.class).value();
// Predefined handler priority // Predefined handler priority
int priority = 100; int priority = DEFAULT_PRIORITY;
if (listener.getClass().isAnnotationPresent(Priority.class)) if (listener.getClass().isAnnotationPresent(Priority.class))
priority = listener.getClass().getAnnotation(Priority.class).value(); priority = listener.getClass().getAnnotation(Priority.class).value();