Turn manual array copies into System.arrayCopy

This commit is contained in:
riking
2014-06-03 18:19:37 -07:00
parent d32a077359
commit 009df4a0ad
4 changed files with 4 additions and 12 deletions

View File

@@ -265,9 +265,7 @@ public abstract class BaseDisguiseCommand implements CommandExecutor {
}
// Copy strings to their new range
String[] newArgs = new String[args.length - toSkip];
for (int i = toSkip; i < args.length; i++) {
newArgs[i - toSkip] = args[i];
}
System.arraycopy(args, toSkip, newArgs, 0, args.length - toSkip);
args = newArgs;
for (int i = 0; i < args.length; i += 2) {
String methodName = args[i];