From 8b84a764446e19ad1a906597d0b14d43d6823f95 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 9 Aug 2019 12:08:18 +0300 Subject: IDEA warnings cleanup --- src/main/java/com/juick/server/TelegramBotManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/com/juick/server/TelegramBotManager.java b/src/main/java/com/juick/server/TelegramBotManager.java index 0dc8b13d..66362c19 100644 --- a/src/main/java/com/juick/server/TelegramBotManager.java +++ b/src/main/java/com/juick/server/TelegramBotManager.java @@ -216,14 +216,14 @@ public class TelegramBotManager implements NotificationListener { if (StringUtils.isNotEmpty(path) && path.length() > 1) { int mid = 0; try { - mid = Integer.valueOf(path.substring(3)); + mid = Integer.parseInt(path.substring(3)); } catch (NumberFormatException e) { logger.warn("wrong mid received"); return; } String prefix = String.format("#%d ", mid); if (StringUtils.isNotEmpty(uriComponents.getFragment())) { - int rid = Integer.valueOf(uriComponents.getFragment()); + int rid = Integer.parseInt(uriComponents.getFragment()); prefix = String.format("#%d/%d ", mid, rid); } executeCommand(message.messageId(), message.from().id().longValue(), -- cgit v1.2.3