From 21889ca8d29843271c0fcea6a8ea7b64145714bc Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 5 Apr 2018 11:55:28 +0300 Subject: xmpp is not yet multilanguage ready --- .../src/main/java/com/juick/server/CommandsManager.java | 9 --------- 1 file changed, 9 deletions(-) (limited to 'juick-server-xmpp/src/main/java') diff --git a/juick-server-xmpp/src/main/java/com/juick/server/CommandsManager.java b/juick-server-xmpp/src/main/java/com/juick/server/CommandsManager.java index e2be6aaf..38b8e254 100644 --- a/juick-server-xmpp/src/main/java/com/juick/server/CommandsManager.java +++ b/juick-server-xmpp/src/main/java/com/juick/server/CommandsManager.java @@ -34,14 +34,12 @@ import com.juick.service.*; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.math.NumberUtils; import org.apache.commons.lang3.reflect.MethodUtils; -import org.ocpsoft.prettytime.PrettyTime; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.ApplicationEventPublisher; import org.springframework.stereotype.Component; import rocks.xmpp.addr.Jid; import javax.annotation.Nonnull; -import javax.annotation.PostConstruct; import javax.inject.Inject; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; @@ -57,7 +55,6 @@ import java.util.stream.Collectors; */ @Component public class CommandsManager { - private PrettyTime pt; @Inject private MessagesService messagesService; @Inject @@ -79,12 +76,6 @@ public class CommandsManager { @Inject private ApplicationEventPublisher applicationEventPublisher; - @PostConstruct - public void init() { - pt = new PrettyTime(new Locale("ru")); - } - - public Optional processCommand(User user, Jid from, String input, @Nonnull URI attachment) throws InvocationTargetException, IllegalAccessException, NoSuchMethodException { Optional cmd = MethodUtils.getMethodsListWithAnnotation(getClass(), UserCommand.class).stream() -- cgit v1.2.3