diff options
author | Vitaly Takmazov | 2019-12-12 11:28:12 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-12-12 11:28:12 +0300 |
commit | f462d7335567960978e16c5e042c99b54daa94b6 (patch) | |
tree | f298f3ac50ed64d0292bba0a8a6e148e8daa434c /src/main/java/com/juick/server/xmpp | |
parent | c0ae480bb5c07ea7b9e1b42df428e2857b0d4816 (diff) |
Cleanup IDEA code issues
Diffstat (limited to 'src/main/java/com/juick/server/xmpp')
-rw-r--r-- | src/main/java/com/juick/server/xmpp/JidConverter.java | 4 |
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); } } |