From 6dda14f41fc10c3dcd57d65da48e39733cb096c7 Mon Sep 17 00:00:00 2001 From: montlikadani Date: Thu, 16 Aug 2018 18:48:26 +0200 Subject: [PATCH] Update CMIItemStack.java --- .../java/com/gamingmesh/jobs/CMILib/CMIItemStack.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gamingmesh/jobs/CMILib/CMIItemStack.java b/src/main/java/com/gamingmesh/jobs/CMILib/CMIItemStack.java index 9db29a13..ea700d02 100644 --- a/src/main/java/com/gamingmesh/jobs/CMILib/CMIItemStack.java +++ b/src/main/java/com/gamingmesh/jobs/CMILib/CMIItemStack.java @@ -107,7 +107,7 @@ public class CMIItemStack { ItemMeta meta = this.getItemStack().getItemMeta(); List lore = meta.getLore(); if (lore == null) - lore = new ArrayList(); + lore = new ArrayList<>(); lore.add(ChatColor.translateAlternateColorCodes('&', string)); meta.setLore(lore); this.getItemStack().setItemMeta(meta); @@ -116,7 +116,7 @@ public class CMIItemStack { public CMIItemStack clearLore() { ItemMeta meta = this.getItemStack().getItemMeta(); - List t = new ArrayList(); + List t = new ArrayList<>(); meta.setLore(t); this.getItemStack().setItemMeta(meta); return this; @@ -126,7 +126,7 @@ public class CMIItemStack { if (lore == null || lore.isEmpty()) return this; ItemMeta meta = this.getItemStack().getItemMeta(); - List t = new ArrayList(); + List t = new ArrayList<>(); for (String one : lore) { t.add(ChatColor.translateAlternateColorCodes('&', one)); } @@ -165,7 +165,7 @@ public class CMIItemStack { if (meta != null) { List lore = meta.getLore(); if (lore == null) { - lore = new ArrayList(); + lore = new ArrayList<>(); meta.setLore(lore); }