From 5c1ff763ec0ba2bc08b4ff2c480fc342a251b0b6 Mon Sep 17 00:00:00 2001 From: Florian Wendland Date: Tue, 5 Jul 2022 08:38:41 +0200 Subject: [PATCH] Fix immutable list for unmatched CLI options (#524) Empty list from Collection is immutable. Causes exception when trying to add unmatched CLI options. --- codyze-v2/src/main/java/de/fraunhofer/aisec/codyze/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codyze-v2/src/main/java/de/fraunhofer/aisec/codyze/Main.java b/codyze-v2/src/main/java/de/fraunhofer/aisec/codyze/Main.java index cbf1e31c7..30c58b5b4 100644 --- a/codyze-v2/src/main/java/de/fraunhofer/aisec/codyze/Main.java +++ b/codyze-v2/src/main/java/de/fraunhofer/aisec/codyze/Main.java @@ -141,7 +141,7 @@ public static class ConfigFilePath { public File configFile; @Unmatched - public List remainder = Collections.emptyList(); + public List remainder = new ArrayList<>(); } // Combines all CLI Options from the different classes to be able to render a complete help message