From f9136953504694f48b2f4e12b3a4dc09b14d8c18 Mon Sep 17 00:00:00 2001 From: montlikadani Date: Thu, 16 Aug 2018 18:16:08 +0200 Subject: [PATCH] Update Job.java --- src/main/java/com/gamingmesh/jobs/container/Job.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/gamingmesh/jobs/container/Job.java b/src/main/java/com/gamingmesh/jobs/container/Job.java index 0aff905c..a1d4867d 100644 --- a/src/main/java/com/gamingmesh/jobs/container/Job.java +++ b/src/main/java/com/gamingmesh/jobs/container/Job.java @@ -37,7 +37,7 @@ import com.gamingmesh.jobs.stuff.Debug; public class Job { // job info - private EnumMap> jobInfo = new EnumMap>(ActionType.class); + private EnumMap> jobInfo = new EnumMap<>(ActionType.class); // permissions private List jobPermissions; // commands @@ -67,9 +67,9 @@ public class Job { // max number of people allowed with this job on the server. private Integer maxSlots; // Commands to be performed on player job join - private List CmdOnJoin = new ArrayList(); + private List CmdOnJoin = new ArrayList<>(); // Commands to be performed on player job leave - private List CmdOnLeave = new ArrayList(); + private List CmdOnLeave = new ArrayList<>(); // Item for GUI private ItemStack GUIitem; // Item for GUI @@ -83,9 +83,9 @@ public class Job { private Parser moneyEquation, xpEquation, pointsEquation; - private List fDescription = new ArrayList(); + private List fDescription = new ArrayList<>(); - private List quests = new ArrayList(); + private List quests = new ArrayList<>(); private int maxDailyQuests = 1; /** @@ -454,7 +454,7 @@ public class Job { // } public Quest getNextQuest(List excludeQuests, Integer level) { - List ls = new ArrayList(this.quests); + List ls = new ArrayList<>(this.quests); Collections.shuffle(ls); int i = 0;