From 249fff41ba49c99d50aa29e770e79f7650e33425 Mon Sep 17 00:00:00 2001 From: pesse Date: Fri, 9 Feb 2018 09:25:37 +0100 Subject: [PATCH] If we open a ZIP-FileSystem we should close it afterwards... Maybe this whole approach needs refactoring, but for the moment dividing it into several classes will only decrease readability I think for we have only the two possibilities. --- src/main/java/org/utplsql/api/ResourceUtil.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/utplsql/api/ResourceUtil.java b/src/main/java/org/utplsql/api/ResourceUtil.java index a9568de..c05c5ff 100644 --- a/src/main/java/org/utplsql/api/ResourceUtil.java +++ b/src/main/java/org/utplsql/api/ResourceUtil.java @@ -72,6 +72,7 @@ public static List getListOfChildren(Path resourceAsPath, boolean filesOnl result.add(entryPath.subpath(relativeStartIndex, entryPath.getNameCount())); } } + resourcePath.getFileSystem().close(); } else { Files.walk(resourcePath) .filter(p -> !filesOnly || p.toFile().isFile())