From 7a09c53bde219834b7088539ec0f2ed322f32c59 Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Wed, 1 Mar 2023 18:16:14 +0100 Subject: [PATCH] Cleanup: Better specify exception catch and remove unused import --- .../ChestShop/Listeners/PreShopCreation/QuantityChecker.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/Acrobot/ChestShop/Listeners/PreShopCreation/QuantityChecker.java b/src/main/java/com/Acrobot/ChestShop/Listeners/PreShopCreation/QuantityChecker.java index 83590e7..60c1612 100644 --- a/src/main/java/com/Acrobot/ChestShop/Listeners/PreShopCreation/QuantityChecker.java +++ b/src/main/java/com/Acrobot/ChestShop/Listeners/PreShopCreation/QuantityChecker.java @@ -1,6 +1,5 @@ package com.Acrobot.ChestShop.Listeners.PreShopCreation; -import com.Acrobot.Breeze.Utils.QuantityUtil; import com.Acrobot.ChestShop.Configuration.Properties; import com.Acrobot.ChestShop.Events.PreShopCreationEvent; import com.Acrobot.ChestShop.Signs.ChestShopSign; @@ -20,7 +19,7 @@ public class QuantityChecker implements Listener { int amount = -1; try { amount = ChestShopSign.getQuantity(event.getSignLines()); - } catch (NumberFormatException notANumber) {} + } catch (NumberFormatException ignored) {} // not a quantity on the line if (amount < 1 || amount > Properties.MAX_SHOP_AMOUNT) { event.setOutcome(INVALID_QUANTITY);