diff options
author | Vitaly Takmazov | 2021-10-23 11:10:19 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-10-23 11:26:43 +0300 |
commit | 8f96d329454c3343d4177364c12c087bf1147a7d (patch) | |
tree | 68d46609ec48f8154ea886cd2a9542ca3c422394 /src/main/java/com/juick/service/component/SystemEvent.java | |
parent | 6b5d0deb398b0b77c13c16fbf116b4639feef574 (diff) |
Minor code cleanup
Diffstat (limited to 'src/main/java/com/juick/service/component/SystemEvent.java')
-rw-r--r-- | src/main/java/com/juick/service/component/SystemEvent.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/com/juick/service/component/SystemEvent.java b/src/main/java/com/juick/service/component/SystemEvent.java index 749f6af8..f4e3ff90 100644 --- a/src/main/java/com/juick/service/component/SystemEvent.java +++ b/src/main/java/com/juick/service/component/SystemEvent.java @@ -17,6 +17,8 @@ package com.juick.service.component; +import javax.annotation.Nonnull; + import com.juick.www.api.SystemActivity; import org.springframework.context.ApplicationEvent; @@ -28,12 +30,12 @@ public class SystemEvent extends ApplicationEvent { * @param source the object on which the event initially occurred (never {@code null}) * @param activity system activity */ - public SystemEvent(Object source, SystemActivity activity) { + public SystemEvent(Object source, @Nonnull SystemActivity activity) { super(source); this.activity = activity; } - public SystemActivity getActivity() { + public @Nonnull SystemActivity getActivity() { return activity; } } |