diff --git a/src/main/java/com/gamingmesh/jobs/container/Schedule.java b/src/main/java/com/gamingmesh/jobs/container/Schedule.java index 6c57b761..4a291600 100644 --- a/src/main/java/com/gamingmesh/jobs/container/Schedule.java +++ b/src/main/java/com/gamingmesh/jobs/container/Schedule.java @@ -22,13 +22,13 @@ public class Schedule { String Name = null; - List Days = new ArrayList(Arrays.asList("all")); - List JobsList = new ArrayList(); + List Days = new ArrayList<>(Arrays.asList("all")); + List JobsList = new ArrayList<>(); - List MessageOnStart = new ArrayList(); - List MessageOnStop = new ArrayList(); + List MessageOnStart = new ArrayList<>(); + List MessageOnStop = new ArrayList<>(); - List MessageToBroadcast = new ArrayList(); + List MessageToBroadcast = new ArrayList<>(); boolean started = false; boolean stoped = true; @@ -173,7 +173,7 @@ public class Schedule { } public void setMessageOnStart(List msg, String From, String Until) { - List temp = new ArrayList(); + List temp = new ArrayList<>(); for (String one : msg) { temp.add(ChatColor.translateAlternateColorCodes('&', one.replace("[until]", Until).replace("[from]", From))); } @@ -185,7 +185,7 @@ public class Schedule { } public void setMessageOnStop(List msg, String From, String Until) { - List temp = new ArrayList(); + List temp = new ArrayList<>(); for (String one : msg) { temp.add(ChatColor.translateAlternateColorCodes('&', one.replace("[until]", Until).replace("[from]", From))); } @@ -197,7 +197,7 @@ public class Schedule { } public void setMessageToBroadcast(List msg, String From, String Until) { - List temp = new ArrayList(); + List temp = new ArrayList<>(); for (String one : msg) { temp.add(ChatColor.translateAlternateColorCodes('&', one.replace("[until]", Until).replace("[from]", From))); }