aboutsummaryrefslogtreecommitdiff
path: root/juick-common
diff options
context:
space:
mode:
Diffstat (limited to 'juick-common')
-rw-r--r--juick-common/src/main/java/com/juick/service/UserService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-common/src/main/java/com/juick/service/UserService.java b/juick-common/src/main/java/com/juick/service/UserService.java
index df62f0ef..08a7a6ed 100644
--- a/juick-common/src/main/java/com/juick/service/UserService.java
+++ b/juick-common/src/main/java/com/juick/service/UserService.java
@@ -22,6 +22,7 @@ import com.juick.User;
import com.juick.server.helpers.Auth;
import com.juick.server.helpers.UserInfo;
+import javax.annotation.Nonnull;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
@@ -65,7 +66,7 @@ public interface UserService {
int getUIDbyHash(String hash);
- com.juick.User getUserByHash(String hash);
+ @Nonnull com.juick.User getUserByHash(String hash);
String getHashByUID(int uid);