private void releaseZipFile(final ZipFile zipFile) throws IOException { if (myCanLockJar) { myZipFileRef.release(); } else if (zipFile != null) { zipFile.close(); } }
@Nullable private ZipFile acquireZipFile() throws IOException { if (myCanLockJar) { return myZipFileRef.acquire(); } return doGetZipFile(); }