From 846c4f9373cf5ca2af82e763d1fe16e422c848c2 Mon Sep 17 00:00:00 2001 From: montlikadani Date: Thu, 16 Aug 2018 18:22:47 +0200 Subject: [PATCH] Update Schedule.java --- .../com/gamingmesh/jobs/container/Schedule.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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))); }