From b75258ee5ed84510579050b5dba1edb904a09dfa Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 12 Nov 2016 21:39:19 +0300 Subject: initial babbler-based xmpp bot --- .../src/main/java/com/juick/server/protocol/JuickProtocol.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'juick-core') 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 commandsHelp = Arrays.asList(getClass().getDeclaredMethods()).stream() + List commandsHelp = Arrays.stream(getClass().getDeclaredMethods()) .filter(m -> m.isAnnotationPresent(UserCommand.class)) .map(m -> m.getAnnotation(UserCommand.class).help()) .collect(Collectors.toList()); -- cgit v1.2.3