From 673da114f2f57ff07248b00084abaefcbd823794 Mon Sep 17 00:00:00 2001 From: Arnaud Roques Date: Mon, 13 Sep 2021 17:58:32 +0200 Subject: [PATCH] Temporary rollback to fix issue when import zip file --- src/net/sourceforge/plantuml/AFileZipEntry.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); }