aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-08-09 12:08:18 +0300
committerGravatar Vitaly Takmazov2019-08-09 12:08:18 +0300
commit8b84a764446e19ad1a906597d0b14d43d6823f95 (patch)
treeff9ad4bd9cc484b7f438d73a971ddfc76d02372c /src/main/java
parent4a76aa224ca23d3fbbef9b2f25bf52be4d5ded78 (diff)
IDEA warnings cleanup
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/juick/server/TelegramBotManager.java4
1 files changed, 2 insertions, 2 deletions
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(),