Deprecate and stop using Java15Compat class.

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2016-07-29 17:28:25 +10:00
parent f0bfb0fdf7
commit 3b51e3f230
4 changed files with 11 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
package org.bukkit;
import java.lang.reflect.Constructor;
import java.util.Arrays;
import java.util.Map;
import org.apache.commons.lang.Validate;
@@ -58,8 +59,6 @@ import org.bukkit.material.Vine;
import org.bukkit.material.Wood;
import org.bukkit.material.WoodenStep;
import org.bukkit.material.Wool;
import org.bukkit.potion.Potion;
import org.bukkit.util.Java15Compat;
import com.google.common.collect.Maps;
@@ -721,7 +720,7 @@ public enum Material {
if (byId.length > material.id) {
byId[material.id] = material;
} else {
byId = Java15Compat.Arrays_copyOfRange(byId, 0, material.id + 2);
byId = Arrays.copyOfRange(byId, 0, material.id + 2);
byId[material.id] = material;
}
BY_NAME.put(material.name(), material);