mirror of
https://github.com/corda/corda.git
synced 2025-03-11 15:04:14 +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);
|
||||
|
||||
public int read() throws IOException {
|
||||
int c = super.read();
|
||||
if (c >= 0) {
|
||||
-- remaining;
|
||||
}
|
||||
return c;
|
||||
byte[] buffer = new byte[1];
|
||||
int c = read(buffer);
|
||||
return (c < 0 ? c : (buffer[0] & 0xFF));
|
||||
}
|
||||
|
||||
public int read(byte[] buffer) throws IOException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user