1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-26 14:56:28 +00:00

Temporary rollback to fix issue when import zip file

This commit is contained in:
Arnaud Roques 2021-09-13 17:58:32 +02:00
parent 1bd97a0992
commit 673da114f2

View File

@ -60,7 +60,8 @@ public class AFileZipEntry implements AFile {
public InputStream openFile() { public InputStream openFile() {
final InputStream tmp = zipFile.openFile(); final InputStream tmp = zipFile.openFile();
if (tmp != null) if (tmp != null)
try (final ZipInputStream zis = new ZipInputStream(tmp)) { try {
final ZipInputStream zis = new ZipInputStream(tmp);
ZipEntry ze = zis.getNextEntry(); ZipEntry ze = zis.getNextEntry();
while (ze != null) { while (ze != null) {
@ -72,6 +73,7 @@ public class AFileZipEntry implements AFile {
ze = zis.getNextEntry(); ze = zis.getNextEntry();
} }
zis.closeEntry(); zis.closeEntry();
zis.close();
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }