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,8 +1,7 @@
package org.bukkit.command;
import static org.bukkit.util.Java15Compat.Arrays_copyOfRange;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
@@ -137,7 +136,7 @@ public class SimpleCommandMap implements CommandMap {
try {
// Note: we don't return the result of target.execute as thats success / failure, we return handled (true) or not handled (false)
target.execute(sender, sentCommandLabel, Arrays_copyOfRange(args, 1, args.length));
target.execute(sender, sentCommandLabel, Arrays.copyOfRange(args, 1, args.length));
} catch (CommandException ex) {
throw ex;
} catch (Throwable ex) {