From f910c7624866b4bd6daa25af078256a30ea2cfba Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 14 May 2013 12:46:45 -0400 Subject: [PATCH] Conventions. --- src/main/java/com/gmail/nossr50/skills/fishing/Fishing.java | 2 +- .../com/gmail/nossr50/skills/fishing/FishingManager.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/fishing/Fishing.java b/src/main/java/com/gmail/nossr50/skills/fishing/Fishing.java index 2fd4c7130..b8b3362b4 100644 --- a/src/main/java/com/gmail/nossr50/skills/fishing/Fishing.java +++ b/src/main/java/com/gmail/nossr50/skills/fishing/Fishing.java @@ -52,7 +52,7 @@ public final class Fishing { abstract protected int getVanillaXPBoostModifier(); } - protected static final HashMap> enchantableCache = new HashMap>(); + protected static final HashMap> ENCHANTABLE_CACHE = new HashMap>(); public static int fishermansDietRankLevel1 = AdvancedConfig.getInstance().getFishermanDietRankChange(); public static int fishermansDietRankLevel2 = fishermansDietRankLevel1 * 2; diff --git a/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java b/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java index 7517692b7..7b59d4dce 100644 --- a/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java +++ b/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java @@ -436,8 +436,8 @@ public class FishingManager extends SkillManager { private List getPossibleEnchantments(ItemStack treasureDrop) { Material dropType = treasureDrop.getType(); - if (Fishing.enchantableCache.containsKey(dropType)) { - return Fishing.enchantableCache.get(dropType); + if (Fishing.ENCHANTABLE_CACHE.containsKey(dropType)) { + return Fishing.ENCHANTABLE_CACHE.get(dropType); } List possibleEnchantments = new ArrayList(); @@ -448,7 +448,7 @@ public class FishingManager extends SkillManager { } } - Fishing.enchantableCache.put(dropType, possibleEnchantments); + Fishing.ENCHANTABLE_CACHE.put(dropType, possibleEnchantments); return possibleEnchantments; }