Skip to content

Commit 66bd46e

Browse files
committed
use copyOfRange
1 parent 95703fc commit 66bd46e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/com/qiniu/utils/InputStreamAt.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ public static byte[] copyOfRange(byte[] original, int from, int to) {
160160
int newLength = to - from;
161161
if (newLength < 0) throw new IllegalArgumentException(from + " > " + to);
162162
byte[] copy = new byte[newLength];
163-
System.arraycopy(original, from, copy, 0,
164-
Math.min(original.length - from, newLength));
163+
System.arraycopy(original, from, copy, 0, Math.min(original.length - from, newLength));
165164
return copy;
166165
}
167166

0 commit comments

Comments
 (0)