Merge branch '1.5.x'

This commit is contained in:
Stephane Nicoll
2017-10-29 14:11:26 +01:00
5 changed files with 6 additions and 6 deletions

View File

@@ -149,7 +149,7 @@ public class JarFileArchive implements Archive {
ResourceAccess.ONCE);
OutputStream outputStream = new FileOutputStream(file)) {
byte[] buffer = new byte[BUFFER_SIZE];
int bytesRead = -1;
int bytesRead;
while ((bytesRead = inputStream.read(buffer)) != -1) {
outputStream.write(buffer, 0, bytesRead);
}