From 91bd51c87c715954e21e96948db11aa980dcbeb2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 26 Jul 2018 09:57:04 +0300 Subject: WebsocketManager refactoring --- juick-common/src/main/java/com/juick/service/UserService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'juick-common/src/main') 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); -- cgit v1.2.3