Replace hardcoded priority value by constant

pull/13/head
Kai S. K. Engelbart 2021-03-16 10:17:24 +01:00
parent 7357198d45
commit f74b953db8
Signed by: kske
GPG Key ID: 8BEB13EC5DF7EF13
1 changed files with 1 additions and 1 deletions

View File

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