Replace hardcoded priority value by constant

This commit is contained in:
Kai S. K. Engelbart 2021-03-16 10:17:24 +01:00
parent 7357198d45
commit f74b953db8
Signed by: kske
GPG Key ID: 8BEB13EC5DF7EF13

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();