@@ -21,7 +21,7 @@ public class Java15Compat {
|
||||
if (original.length >= start && 0 <= start) {
|
||||
if (start <= end) {
|
||||
int length = end - start;
|
||||
int copyLength = Math.min( length, original.length - start);
|
||||
int copyLength = Math.min(length, original.length - start);
|
||||
long[] copy = (long[]) Array.newInstance(original.getClass().getComponentType(), length);
|
||||
System.arraycopy(original, start, copy, 0, copyLength);
|
||||
return copy;
|
||||
|
||||
@@ -55,5 +55,5 @@ public class ShortConsoleLogFormatter extends Formatter {
|
||||
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user