This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository i18n. See https://gitlab.nuiton.org/nuiton/i18n.git commit 606b6585237029f24152ff47393c7591a9d3be98 Author: jcouteau <couteau@codelutin.com> Date: Tue Aug 23 14:29:39 2022 +0200 Prevent bug (from sonarqube) --- .../src/main/java/org/nuiton/i18n/bundle/I18nBundleUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nuiton-i18n/src/main/java/org/nuiton/i18n/bundle/I18nBundleUtil.java b/nuiton-i18n/src/main/java/org/nuiton/i18n/bundle/I18nBundleUtil.java index f09b16e..230e6b9 100644 --- a/nuiton-i18n/src/main/java/org/nuiton/i18n/bundle/I18nBundleUtil.java +++ b/nuiton-i18n/src/main/java/org/nuiton/i18n/bundle/I18nBundleUtil.java @@ -567,11 +567,11 @@ public class I18nBundleUtil { */ String pattern = ".*i18n/.+\\.properties"; - try (ZipInputStream zis = new ZipInputStream(new FileInputStream(jarfile))) { - List<URL> result = new ArrayList<>(); - ClassLoader cl = new URLClassLoader( + try (ZipInputStream zis = new ZipInputStream(new FileInputStream(jarfile)); + URLClassLoader cl = new URLClassLoader( new URL[]{incomingURL}, - I18nBundleUtil.class.getClassLoader()); + I18nBundleUtil.class.getClassLoader())) { + List<URL> result = new ArrayList<>(); while (zis.available() != 0) { ZipEntry entry = zis.getNextEntry(); -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.