diff --git a/src/net/sourceforge/plantuml/AFileZipEntry.java b/src/net/sourceforge/plantuml/AFileZipEntry.java index e0bb5a4c2..ee29ccf82 100644 --- a/src/net/sourceforge/plantuml/AFileZipEntry.java +++ b/src/net/sourceforge/plantuml/AFileZipEntry.java @@ -60,7 +60,8 @@ public class AFileZipEntry implements AFile { public InputStream openFile() { final InputStream tmp = zipFile.openFile(); if (tmp != null) - try (final ZipInputStream zis = new ZipInputStream(tmp)) { + try { + final ZipInputStream zis = new ZipInputStream(tmp); ZipEntry ze = zis.getNextEntry(); while (ze != null) { @@ -72,6 +73,7 @@ public class AFileZipEntry implements AFile { ze = zis.getNextEntry(); } zis.closeEntry(); + zis.close(); } catch (IOException e) { e.printStackTrace(); }