aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service/activities
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/service/activities')
-rw-r--r--src/main/java/com/juick/service/activities/ActivityListener.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/juick/service/activities/ActivityListener.java b/src/main/java/com/juick/service/activities/ActivityListener.java
index 3dcd123c..badda8a3 100644
--- a/src/main/java/com/juick/service/activities/ActivityListener.java
+++ b/src/main/java/com/juick/service/activities/ActivityListener.java
@@ -20,10 +20,12 @@ package com.juick.service.activities;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
+import jakarta.annotation.Nonnull;
+
public interface ActivityListener {
@Async
@EventListener
- void processFollowEvent(FollowEvent event);
+ void processFollowEvent(@Nonnull FollowEvent event);
@Async
@EventListener
void undoFollowEvent(UndoFollowEvent event);