mirror of
https://github.com/corda/corda.git
synced 2025-03-12 07:23:59 +00:00
Merge pull request #184 from dicej/zip-available
remove redundant decrement in ZipFile.getInputStream inner class
This commit is contained in:
commit
e837502d43
@ -103,11 +103,9 @@ public class ZipFile {
|
|||||||
int remaining = uncompressedSize(window, pointer);
|
int remaining = uncompressedSize(window, pointer);
|
||||||
|
|
||||||
public int read() throws IOException {
|
public int read() throws IOException {
|
||||||
int c = super.read();
|
byte[] buffer = new byte[1];
|
||||||
if (c >= 0) {
|
int c = read(buffer);
|
||||||
-- remaining;
|
return (c < 0 ? c : (buffer[0] & 0xFF));
|
||||||
}
|
|
||||||
return c;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int read(byte[] buffer) throws IOException {
|
public int read(byte[] buffer) throws IOException {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user