From 70bd9606cad063ac8b214d8ed1584bbbfffa4f67 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 21 Feb 2022 18:18:54 +0100 Subject: [PATCH] sdcs --- src/org/atriasoft/etk/Uri.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/org/atriasoft/etk/Uri.java b/src/org/atriasoft/etk/Uri.java index 16589d0..219626c 100644 --- a/src/org/atriasoft/etk/Uri.java +++ b/src/org/atriasoft/etk/Uri.java @@ -98,8 +98,7 @@ public class Uri { private static List getResourceFiles(final Class clazz, final String path) throws IOException { List filenames = new ArrayList<>(); - try (InputStream in = clazz.getResourceAsStream(path); - BufferedReader br = new BufferedReader(new InputStreamReader(in))) { + try (InputStream in = clazz.getResourceAsStream(path); BufferedReader br = new BufferedReader(new InputStreamReader(in))) { String resource; while ((resource = br.readLine()) != null) { filenames.add(resource); @@ -140,7 +139,7 @@ public class Uri { if (realFileName != null) { Log.info("(appl) >>> " + realFileName.getFile()); } else { - Log.info("(appl) ??? base folder:" + Uri.applicationClass.getProtectionDomain().getCodeSource().getLocation().getPath() + Uri.applicationBasePath + offsetGroup + uri.path); + Log.info("(appl) ??? base folder: " + Uri.applicationClass.getProtectionDomain().getCodeSource().getLocation().getPath() + Uri.applicationBasePath + offsetGroup + uri.path); } out = Uri.applicationClass.getResourceAsStream(tmpPath); @@ -178,7 +177,7 @@ public class Uri { if (realFileName != null) { Log.info("(lib) >>> " + realFileName.getFile()); } else { - Log.info("(lib) ??? base folder:" + libraryElement.klass.getProtectionDomain().getCodeSource().getLocation().getPath() + libraryElement.basePath + offsetGroup + uri.path); + Log.info("(lib) ??? base folder: " + libraryElement.klass.getProtectionDomain().getCodeSource().getLocation().getPath() + libraryElement.basePath + offsetGroup + uri.path); } out = libraryElement.klass.getResourceAsStream(tmpPath); if (out == null) {