aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server/xmpp/JidConverter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/server/xmpp/JidConverter.java')
-rw-r--r--src/main/java/com/juick/server/xmpp/JidConverter.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/juick/server/xmpp/JidConverter.java b/src/main/java/com/juick/server/xmpp/JidConverter.java
index e9a9707e..96c9ca74 100644
--- a/src/main/java/com/juick/server/xmpp/JidConverter.java
+++ b/src/main/java/com/juick/server/xmpp/JidConverter.java
@@ -4,10 +4,12 @@ import org.springframework.core.convert.converter.Converter;
import org.springframework.lang.Nullable;
import rocks.xmpp.addr.Jid;
+import javax.annotation.Nonnull;
+
public class JidConverter implements Converter<String, Jid> {
@Nullable
@Override
- public Jid convert(String jidStr) {
+ public Jid convert(@Nonnull String jidStr) {
return Jid.of(jidStr);
}
}