1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-22 21:15:09 +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() {
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();
}