diff options
Diffstat (limited to 'libjava/classpath/java/util/zip/CheckedInputStream.java')
-rw-r--r-- | libjava/classpath/java/util/zip/CheckedInputStream.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libjava/classpath/java/util/zip/CheckedInputStream.java b/libjava/classpath/java/util/zip/CheckedInputStream.java index d743fbb2447..163a4c4aa30 100644 --- a/libjava/classpath/java/util/zip/CheckedInputStream.java +++ b/libjava/classpath/java/util/zip/CheckedInputStream.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -118,13 +118,13 @@ public class CheckedInputStream extends FilterInputStream long s = 0; while (n > 0) { - int r = in.read(buf, 0, min); - if (r == -1) - break; - n -= r; - s += r; - min = (int) Math.min(n, 1024); - sum.update(buf, 0, r); + int r = in.read(buf, 0, min); + if (r == -1) + break; + n -= r; + s += r; + min = (int) Math.min(n, 1024); + sum.update(buf, 0, r); } return s; |