From e61a316815aabb8dc1f680fdb7f8b9a61868c158 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Mon, 23 Apr 2012 23:05:57 -0400 Subject: [PATCH] We build for Java 1.5. --- src/main/java/org/bukkit/craftbukkit/util/UnsafeList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/util/UnsafeList.java b/src/main/java/org/bukkit/craftbukkit/util/UnsafeList.java index f23801e45b..818ca5e000 100644 --- a/src/main/java/org/bukkit/craftbukkit/util/UnsafeList.java +++ b/src/main/java/org/bukkit/craftbukkit/util/UnsafeList.java @@ -107,7 +107,7 @@ public class UnsafeList extends AbstractList implements List, RandomAcc int old = data.length; int rounded = Integer.highestOneBit(size - 1) << 1; if (rounded < old) { - data = Arrays.copyOf(data, rounded); + data = Java15Compat.Arrays_copyOf(data, rounded); } }