This commit is contained in:
Edouard DUPIN 2022-02-21 18:18:54 +01:00
parent e53ed45d42
commit 70bd9606ca

View File

@ -98,8 +98,7 @@ public class Uri {
private static List<String> getResourceFiles(final Class<?> clazz, final String path) throws IOException {
List<String> 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);