diff options
author | Vitaly Takmazov | 2016-11-12 21:39:19 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-11-12 21:39:19 +0300 |
commit | b75258ee5ed84510579050b5dba1edb904a09dfa (patch) | |
tree | 004bf34050ea281b88a4e7b6f55072959416a9c1 /juick-core/src | |
parent | 2d9e3878f472743e326dcd82818f7adb94e6f769 (diff) |
initial babbler-based xmpp bot
Diffstat (limited to 'juick-core/src')
-rw-r--r-- | juick-core/src/main/java/com/juick/server/protocol/JuickProtocol.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-core/src/main/java/com/juick/server/protocol/JuickProtocol.java b/juick-core/src/main/java/com/juick/server/protocol/JuickProtocol.java index aff8010a..5faddd3a 100644 --- a/juick-core/src/main/java/com/juick/server/protocol/JuickProtocol.java +++ b/juick-core/src/main/java/com/juick/server/protocol/JuickProtocol.java @@ -1,12 +1,12 @@ package com.juick.server.protocol; -import com.juick.*; import com.juick.Message; +import com.juick.Tag; +import com.juick.User; import com.juick.formatters.PlainTextFormatter; import com.juick.json.MessageSerializer; import com.juick.server.*; import com.juick.server.protocol.annotation.UserCommand; -import com.juick.xmpp.*; import com.juick.xmpp.extensions.JuickMessage; import org.springframework.jdbc.core.JdbcTemplate; @@ -449,7 +449,7 @@ public class JuickProtocol { @UserCommand(pattern = "^\\s*help\\s*$", patternFlags = Pattern.CASE_INSENSITIVE, help = "HELP - returns this help message") public ProtocolReply commandHelp(User user, String[] input) { - List<String> commandsHelp = Arrays.asList(getClass().getDeclaredMethods()).stream() + List<String> commandsHelp = Arrays.stream(getClass().getDeclaredMethods()) .filter(m -> m.isAnnotationPresent(UserCommand.class)) .map(m -> m.getAnnotation(UserCommand.class).help()) .collect(Collectors.toList()); |