From c1829dd560598910d11dc56598517d541d6bacc3 Mon Sep 17 00:00:00 2001 From: montlikadani Date: Thu, 16 Aug 2018 18:33:20 +0200 Subject: [PATCH] Update LanguageManager.java --- .../java/com/gamingmesh/jobs/config/LanguageManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gamingmesh/jobs/config/LanguageManager.java b/src/main/java/com/gamingmesh/jobs/config/LanguageManager.java index e4c399ef..5aabe876 100644 --- a/src/main/java/com/gamingmesh/jobs/config/LanguageManager.java +++ b/src/main/java/com/gamingmesh/jobs/config/LanguageManager.java @@ -23,7 +23,7 @@ public class LanguageManager { this.plugin = plugin; } - List languages = new ArrayList(); + List languages = new ArrayList<>(); public List getLanguages() { return languages; @@ -46,7 +46,7 @@ public class LanguageManager { private static List getClassesInSamePackageFromJar(String packageName, String jarPath, String cleaner) { JarFile jarFile = null; - List listOfCommands = new ArrayList(); + List listOfCommands = new ArrayList<>(); try { jarFile = new JarFile(jarPath); Enumeration en = jarFile.entries(); @@ -80,7 +80,7 @@ public class LanguageManager { * loads from Jobs/locale/messages_en.yml */ synchronized void load() { - languages = new ArrayList(); + languages = new ArrayList<>(); try { languages.addAll(getClassesFromPackage("locale", "messages_"));