Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6565aae0 authored by Paul Duffin's avatar Paul Duffin Committed by android-build-merger
Browse files

Merge "Remove dependency on InflaterInputStream.closed field."

am: 555fc87b

Change-Id: I66687ef9b82fb2071e6fc04726d099bc1b5fab65
parents 232487ff 555fc87b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -390,6 +390,7 @@ public final class StrictJarFile {
    public static class ZipInflaterInputStream extends InflaterInputStream {
        private final ZipEntry entry;
        private long bytesRead = 0;
        private boolean closed;

        public ZipInflaterInputStream(InputStream is, Inflater inf, int bsize, ZipEntry entry) {
            super(is, inf, bsize);
@@ -424,6 +425,12 @@ public final class StrictJarFile {
            }
            return super.available() == 0 ? 0 : (int) (entry.getSize() - bytesRead);
        }

        @Override
        public void close() throws IOException {
            super.close();
            closed = true;
        }
    }

    /**