From bf69c65db92bae0dfb12bab0a4db4f120ef5ff1d Mon Sep 17 00:00:00 2001 From: montlikadani Date: Thu, 16 Aug 2018 18:50:09 +0200 Subject: [PATCH] Update ItemManager.java --- .../com/gamingmesh/jobs/CMILib/ItemManager.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/gamingmesh/jobs/CMILib/ItemManager.java b/src/main/java/com/gamingmesh/jobs/CMILib/ItemManager.java index 9073accc..92283bba 100644 --- a/src/main/java/com/gamingmesh/jobs/CMILib/ItemManager.java +++ b/src/main/java/com/gamingmesh/jobs/CMILib/ItemManager.java @@ -22,10 +22,10 @@ import com.gamingmesh.jobs.stuff.VersionChecker.Version; public class ItemManager { - static HashMap byId = new HashMap(); - static HashMap byBukkitName = new HashMap(); - static HashMap byMojangName = new HashMap(); - static HashMap byMaterial = new HashMap(); + static HashMap byId = new HashMap<>(); + static HashMap byBukkitName = new HashMap<>(); + static HashMap byMojangName = new HashMap<>(); + static HashMap byMaterial = new HashMap<>(); static Version version; public static void load() { @@ -119,7 +119,7 @@ public class ItemManager { return cm; } - static HashMap headCache = new HashMap(); + static HashMap headCache = new HashMap<>(); public static CMIItemStack getItem(String name) { if (byBukkitName.isEmpty()) @@ -276,7 +276,7 @@ public class ItemManager { } static public List getAllRecipes() { - List results = new ArrayList(); + List results = new ArrayList<>(); Iterator iter = Bukkit.recipeIterator(); while (iter.hasNext()) { Recipe recipe = iter.next(); @@ -287,7 +287,7 @@ public class ItemManager { static public List getRecipesFor(ItemStack result) { - List results = new ArrayList(); + List results = new ArrayList<>(); Iterator iter = Bukkit.recipeIterator(); while (iter.hasNext()) { Recipe recipe = iter.next(); @@ -1579,7 +1579,7 @@ public class ItemManager { public static CMIMaterial getRandom(CMIMaterial mat) { - List ls = new ArrayList(); + List ls = new ArrayList<>(); for (CMIMaterial one : CMIMaterial.values()) { if (one.getLegacyId() == -1)