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

Commit 35f46b89 authored by Neil Fuller's avatar Neil Fuller Committed by android-build-merger
Browse files

Merge "Add a finalize() method to StrictJarFile" am: d0c0c8dc am: 2ffb7eba am: f952f520

am: ce78eb6b

Change-Id: Ic622fe2adabfed18a6481f8d32685e37f3fe24b0
parents f02453b7 ce78eb6b
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -200,6 +200,18 @@ public final class StrictJarFile {
        }
    }

    @Override
    protected void finalize() throws Throwable {
        try {
            if (guard != null) {
                guard.warnIfOpen();
            }
            close();
        } finally {
            super.finalize();
        }
    }

    private InputStream getZipInputStream(ZipEntry ze) {
        if (ze.getMethod() == ZipEntry.STORED) {
            return new RAFStream(raf, ze.getDataOffset(),