aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service/activities
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-15 19:51:49 +0300
committerGravatar Vitaly Takmazov2022-12-15 19:51:56 +0300
commitc9617232d5eeced643b510c108384619a7fc79b0 (patch)
tree2c08a3084f21b8c54a2bdfba6331db13991b60af /src/main/java/com/juick/service/activities
parent5933eac025502978a4c0e3546ed9504408e6969c (diff)
Extract user to actor conversion code into Converter
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);