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

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

Merge "Remove dependency on InflaterInputStream.closed field." am: 555fc87b

am: 6565aae0

Change-Id: Ifdb606d1a4e60347ad4d36518901a6feafc070bc
parents dabe94f3 6565aae0
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;
        }
    }

    /**