Use Arrays.copyOf and Arrays.copyOfRange where possible
Closes gh-23393
This commit is contained in:
@@ -501,9 +501,7 @@ class Tokenizer {
|
||||
}
|
||||
|
||||
private char[] subarray(int start, int end) {
|
||||
char[] result = new char[end - start];
|
||||
System.arraycopy(this.charsToProcess, start, result, 0, end - start);
|
||||
return result;
|
||||
return Arrays.copyOfRange(this.charsToProcess, start, end);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user