diff --git a/src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java b/src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java index e7a940af..d5493106 100644 --- a/src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java +++ b/src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java @@ -42,12 +42,12 @@ public class JobsPlayer { private String userName; // progression of the player in each job public UUID playerUUID; - public ArrayList progression = new ArrayList(); + public ArrayList progression = new ArrayList<>(); private ArchivedJobs archivedJobs = new ArchivedJobs(); private PaymentData paymentLimits = null; - private HashMap> boostCounter = new HashMap>(); + private HashMap> boostCounter = new HashMap<>(); // display honorific private String honorific; @@ -59,24 +59,24 @@ public class JobsPlayer { private OfflinePlayer OffPlayer = null; private Player player = null; - private HashMap limits = new HashMap(); + private HashMap limits = new HashMap<>(); private int userid = -1; - List barMap = new ArrayList(); - List updateBossBarFor = new ArrayList(); + List barMap = new ArrayList<>(); + List updateBossBarFor = new ArrayList<>(); // save lock // public final Object saveLock = new Object(); // log - private HashMap logList = new HashMap(); + private HashMap logList = new HashMap<>(); private Long seen = System.currentTimeMillis(); private HashMap permissionsCache = null; private Long lastPermissionUpdate = -1L; - private HashMap> qProgression = new HashMap>(); + private HashMap> qProgression = new HashMap<>(); private int doneQuests = 0; public JobsPlayer(String userName, OfflinePlayer player) { @@ -239,7 +239,7 @@ public class JobsPlayer { Boost = getPlayerBoostNew(JobName, type); - ArrayList counterList = new ArrayList(); + ArrayList counterList = new ArrayList<>(); counterList.add(new BoostCounter(type, Boost, time)); boostCounter.put(JobName, counterList); @@ -840,7 +840,7 @@ public class JobsPlayer { } private List getQuestNameList(Job job, ActionType type) { - List ls = new ArrayList(); + List ls = new ArrayList<>(); if (!this.isInJob(job)) return ls; @@ -868,7 +868,7 @@ public class JobsPlayer { } public List getQuestProgressions() { - List g = new ArrayList(); + List g = new ArrayList<>(); for (JobProgression one : this.getJobProgression()) { g.addAll(this.getQuestProgressions(one.getJob())); } @@ -882,12 +882,12 @@ public class JobsPlayer { public List getQuestProgressions(Job job, ActionType type) { if (!this.isInJob(job)) return null; - List g = new ArrayList(); + List g = new ArrayList<>(); if (this.qProgression.get(job.getName()) != null) - g = new ArrayList(this.qProgression.get(job.getName())); + g = new ArrayList<>(this.qProgression.get(job.getName())); - List tmp = new ArrayList(); + List tmp = new ArrayList<>(); if (!g.isEmpty()) { if (g.get(0).isEnded()) {