We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8860efb + eee7adb commit 45e5df8Copy full SHA for 45e5df8
src/main/java/com/qiniu/util/Etag.java
@@ -78,7 +78,7 @@ public static String stream(InputStream in, long len) throws IOException {
78
return "Fto5o-5ea0sNMlW_75VgGJCv2AcJ";
79
}
80
byte[] buffer = new byte[64 * 1024];
81
- byte[][] blocks = new byte[(int) (len + Constants.BLOCK_SIZE - 1) / Constants.BLOCK_SIZE][];
+ byte[][] blocks = new byte[(int) ((len + Constants.BLOCK_SIZE - 1) / Constants.BLOCK_SIZE)][];
82
for (int i = 0; i < blocks.length; i++) {
83
long left = len - (long) Constants.BLOCK_SIZE * i;
84
long read = left > Constants.BLOCK_SIZE ? Constants.BLOCK_SIZE : left;
0 commit comments