little fix in copy()

Signed-off-by: Marek Otahal <markotahal@gmail.com>
pull/1/head
Marek Otahal 13 years ago committed by Michael Peter Christen
parent 1dc5d9f0f3
commit f75b5e40e0

@ -107,11 +107,8 @@ public final class FileUtils
dest.flush();
total += c;
if ( count > 0 ) {
chunkSize = (int) Math.min(count - total, DEFAULT_BUFFER_SIZE);
if ( chunkSize == 0 ) {
break;
}
if ( count > 0 && count == total) {
break;
}
}
@ -130,7 +127,7 @@ public final class FileUtils
if ( fis != null ) {
try {
fis.close();
} catch ( final Exception e ) {
} catch (Exception e ) {
}
}
}

Loading…
Cancel
Save