From 6481dea957e9d75008381b09b6689704bb724c61 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Mon, 10 Jun 2024 19:25:41 +0200 Subject: [PATCH] Update EventListener annotation --- .../sosengine/base/annotations/EventListener.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base/src/main/java/de/staropensource/sosengine/base/annotations/EventListener.java b/base/src/main/java/de/staropensource/sosengine/base/annotations/EventListener.java index 07a1e1b..fce6eb9 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/annotations/EventListener.java +++ b/base/src/main/java/de/staropensource/sosengine/base/annotations/EventListener.java @@ -21,6 +21,7 @@ package de.staropensource.sosengine.base.annotations; import de.staropensource.sosengine.base.classes.Event; import de.staropensource.sosengine.base.classes.EventPriority; +import org.jetbrains.annotations.NotNull; import java.lang.annotation.*; @@ -37,6 +38,7 @@ public @interface EventListener { * * @return the event the method listens for */ + @NotNull Class event(); /** @@ -44,5 +46,6 @@ public @interface EventListener { * * @return the event priority */ - EventPriority priority(); + @NotNull + EventPriority priority() default EventPriority.DEFAULT; }