aboutsummaryrefslogtreecommitdiff
path: root/juick-server-xmpp/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-05 11:55:28 +0300
committerGravatar Vitaly Takmazov2018-04-05 11:55:28 +0300
commit21889ca8d29843271c0fcea6a8ea7b64145714bc (patch)
tree5577f09690b08f6a83a6ec26fc9e31d84d1bbbb4 /juick-server-xmpp/src/main/java/com/juick
parent310975ef449254f3fbd504b408b9d6853280be39 (diff)
xmpp is not yet multilanguage ready
Diffstat (limited to 'juick-server-xmpp/src/main/java/com/juick')
-rw-r--r--juick-server-xmpp/src/main/java/com/juick/server/CommandsManager.java9
1 files changed, 0 insertions, 9 deletions
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<CommandResult> processCommand(User user, Jid from, String input, @Nonnull URI attachment) throws InvocationTargetException,
IllegalAccessException, NoSuchMethodException {
Optional<Method> cmd = MethodUtils.getMethodsListWithAnnotation(getClass(), UserCommand.class).stream()