From ab656cb5ca6d72b5f8a181cf2130a054a592351f Mon Sep 17 00:00:00 2001 From: Pascal Christoph Date: Tue, 21 Nov 2023 12:05:03 +0100 Subject: [PATCH] Update metafacture-flux/src/main/java/org/metafacture/flux/HelpPrinter.java Co-authored-by: Jens Wille --- .../src/main/java/org/metafacture/flux/HelpPrinter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/metafacture-flux/src/main/java/org/metafacture/flux/HelpPrinter.java b/metafacture-flux/src/main/java/org/metafacture/flux/HelpPrinter.java index c1494a662..9fa9c3971 100644 --- a/metafacture-flux/src/main/java/org/metafacture/flux/HelpPrinter.java +++ b/metafacture-flux/src/main/java/org/metafacture/flux/HelpPrinter.java @@ -33,7 +33,6 @@ import java.io.PrintStream; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; -import java.nio.file.Files; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; @@ -205,7 +204,7 @@ private static Collection getAvailableArguments(final Class moduleCla private static void loadExamples() throws IOException { final File f = new File(PATH_TO_EXAMPLES); - if (Files.exists(f.toPath())) { + if (f.exists()) { final BufferedReader bufferedReader = new BufferedReader(new FileReader(f)); String line; while ((line = bufferedReader.readLine()) != null) {