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