From 55731ef5326fd2afc80bf481a54a8209d3133450 Mon Sep 17 00:00:00 2001 From: TheBusyBiscuit Date: Thu, 24 Aug 2017 00:03:49 +0200 Subject: [PATCH] Explicitly declare type arguments --- src/me/mrCookieSlime/Slimefun/api/Slimefun.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/me/mrCookieSlime/Slimefun/api/Slimefun.java b/src/me/mrCookieSlime/Slimefun/api/Slimefun.java index 8e71abc1a..1b3f8e0fe 100644 --- a/src/me/mrCookieSlime/Slimefun/api/Slimefun.java +++ b/src/me/mrCookieSlime/Slimefun/api/Slimefun.java @@ -26,8 +26,8 @@ import me.mrCookieSlime.Slimefun.Setup.Messages; */ public class Slimefun { - public static Map> guide_handlers = new HashMap<>(); - public static List guide_handlers2 = new ArrayList<>(); + public static Map> guide_handlers = new HashMap>(); + public static List guide_handlers2 = new ArrayList(); /** * Instance of the GPSNetwork. @@ -40,10 +40,10 @@ public class Slimefun { /** * Lists all the registered categories. */ - public static List current_categories = new ArrayList<>(); + public static List current_categories = new ArrayList(); public static void registerGuideHandler(GuideHandler handler) { - List handlers = new ArrayList<>(); + List handlers = new ArrayList(); if (guide_handlers.containsKey(handler.getTier())) handlers = guide_handlers.get(handler.getTier()); handlers.add(handler); guide_handlers.put(handler.getTier(), handlers); @@ -258,7 +258,7 @@ public class Slimefun { * @return the list of all the IDs of the enabled items. */ public static List listIDs() { - List ids = new ArrayList<>(); + List ids = new ArrayList(); for (SlimefunItem item: SlimefunItem.list()) { ids.add(item.getName()); } @@ -272,7 +272,7 @@ public class Slimefun { * @see #current_categories */ public static List listCategories() { - List items = new ArrayList<>(); + List items = new ArrayList(); for (Category c: Category.list()) { items.add(c.getItem()); } @@ -347,6 +347,6 @@ public class Slimefun { } public static List getGuideHandlers(int tier) { - return guide_handlers.containsKey(tier) ? guide_handlers.get(tier): new ArrayList<>(); + return guide_handlers.containsKey(tier) ? guide_handlers.get(tier): new ArrayList(); } } \ No newline at end of file