diff options
| author | mavlonerkinboev <mavlonbek.ibragimov007@gmail.com> | 2021-10-30 01:46:34 +0500 | 
|---|---|---|
| committer | mavlonerkinboev <mavlonbek.ibragimov007@gmail.com> | 2021-10-30 01:46:34 +0500 | 
| commit | c2776733f5c5ee6d43569b50b7548d4b30d06ee9 (patch) | |
| tree | e0b36d6a1f22cd37760fc1f5342e33735eb339c2 /src/main/java/com/mavlushechka | |
| parent | bc51f297294f0b8adaeede256a22b223cadff1df (diff) | |
Renamed IOExceptions 'e' to 'ioException'
Diffstat (limited to 'src/main/java/com/mavlushechka')
3 files changed, 12 insertions, 12 deletions
| diff --git a/src/main/java/com/mavlushechka/animarfo/App.java b/src/main/java/com/mavlushechka/animarfo/App.java index cdb20b8..cb859c5 100644 --- a/src/main/java/com/mavlushechka/animarfo/App.java +++ b/src/main/java/com/mavlushechka/animarfo/App.java @@ -37,8 +37,8 @@ public class App {          Properties properties = new Properties();          try (FileInputStream fis = new FileInputStream(file)) {              properties.load(fis); -        } catch (IOException e) { -            e.printStackTrace(); +        } catch (IOException ioException) { +            ioException.printStackTrace();          }          return properties;      } diff --git a/src/main/java/com/mavlushechka/animarfo/telegram/bot/Bot.java b/src/main/java/com/mavlushechka/animarfo/telegram/bot/Bot.java index 3e17304..6dee032 100644 --- a/src/main/java/com/mavlushechka/animarfo/telegram/bot/Bot.java +++ b/src/main/java/com/mavlushechka/animarfo/telegram/bot/Bot.java @@ -38,8 +38,8 @@ public class Bot {                  if (update.callbackQuery() != null) {                      try {                          UserCallbackQuery.execute(update.callbackQuery()); -                    } catch (IOException e) { -                        e.printStackTrace(); +                    } catch (IOException ioException) { +                        ioException.printStackTrace();                      }                  }                  if (update.message() != null) { @@ -50,8 +50,8 @@ public class Bot {                      telegramUser = new TelegramUser(user.id(), user.isBot(), user.firstName(), user.lastName(), user.username(), formattedDate);                      try {                          UserMessage.execute(update.message()); -                    } catch (IOException e) { -                        e.printStackTrace(); +                    } catch (IOException ioException) { +                        ioException.printStackTrace();                      }                  }              }); @@ -64,8 +64,8 @@ public class Bot {          byte index = Anime.index;          try {              anime = Parser.getAnime(url); -        } catch (IOException e) { -            e.printStackTrace(); +        } catch (IOException ioException) { +            ioException.printStackTrace();          }          Anime.setList(anime);          TELEGRAM_BOT.execute(new SendPhoto(UserMessage.chatId, anime[index].getImage()).caption(anime[index].showInfo()).parseMode(ParseMode.HTML).replyMarkup(UserKeyboard.getCarousel())); @@ -85,8 +85,8 @@ public class Bot {              Anime[] anime = new Anime[animeAtSearchSize];              try {                  anime = Parser.getAnime("https://anime.anidub.life/?do=search&mode=advanced&subaction=search&titleonly=3&story=" + searchedAnime); -            } catch (IOException e) { -                e.printStackTrace(); +            } catch (IOException ioException) { +                ioException.printStackTrace();              }              Anime.size = animeAtSearchSize;              Anime.setList(anime); diff --git a/src/main/java/com/mavlushechka/animarfo/telegram/user/message/UserMessage.java b/src/main/java/com/mavlushechka/animarfo/telegram/user/message/UserMessage.java index 423103f..f134bde 100644 --- a/src/main/java/com/mavlushechka/animarfo/telegram/user/message/UserMessage.java +++ b/src/main/java/com/mavlushechka/animarfo/telegram/user/message/UserMessage.java @@ -58,8 +58,8 @@ public class UserMessage {                  Anime.setSearched(UserMessage.text);                  try {                      Bot.sendSearchedAnime(); -                } catch (IOException e) { -                    e.printStackTrace(); +                } catch (IOException ioException) { +                    ioException.printStackTrace();                  }                  Anime.isSearching = false;              } else { |