From 471f1ae71d623a54bd7c96aaedfa3d75cc714ecd Mon Sep 17 00:00:00 2001 From: mmxw11 Date: Thu, 5 Oct 2017 22:11:06 +0300 Subject: [PATCH] Try make it compile with Travis... ... don't use diamond operators? --- .../protocol1_12to1_11_1/BukkitInvContainerUpdateTask.java | 2 +- .../bukkit/providers/BukkitInvContainerItemProvider.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bukkit/src/main/java/us/myles/ViaVersion/bukkit/protocol1_12to1_11_1/BukkitInvContainerUpdateTask.java b/bukkit/src/main/java/us/myles/ViaVersion/bukkit/protocol1_12to1_11_1/BukkitInvContainerUpdateTask.java index 4e9fad983..bda6e06ba 100644 --- a/bukkit/src/main/java/us/myles/ViaVersion/bukkit/protocol1_12to1_11_1/BukkitInvContainerUpdateTask.java +++ b/bukkit/src/main/java/us/myles/ViaVersion/bukkit/protocol1_12to1_11_1/BukkitInvContainerUpdateTask.java @@ -20,7 +20,7 @@ public class BukkitInvContainerUpdateTask implements Runnable { public BukkitInvContainerUpdateTask(BukkitInvContainerItemProvider provider, UUID uuid) { this.provider = provider; this.uuid = uuid; - this.items = Collections.synchronizedList(new ArrayList<>()); + this.items = Collections.synchronizedList(new ArrayList()); } public void addItem(short windowId, short slotId, short anumber) { diff --git a/bukkit/src/main/java/us/myles/ViaVersion/bukkit/providers/BukkitInvContainerItemProvider.java b/bukkit/src/main/java/us/myles/ViaVersion/bukkit/providers/BukkitInvContainerItemProvider.java index 1ef717745..94faba7a6 100644 --- a/bukkit/src/main/java/us/myles/ViaVersion/bukkit/providers/BukkitInvContainerItemProvider.java +++ b/bukkit/src/main/java/us/myles/ViaVersion/bukkit/providers/BukkitInvContainerItemProvider.java @@ -26,7 +26,7 @@ import us.myles.ViaVersion.util.ReflectionUtil; public class BukkitInvContainerItemProvider extends InvContainerItemProvider { - private static Map updateTasks = new ConcurrentHashMap<>(); + private static Map updateTasks = new ConcurrentHashMap(); private boolean supported; // packet class private Class wclickPacketClass;