Skip to content

Commit

Permalink
Fix immutable list for unmatched CLI options (#524)
Browse files Browse the repository at this point in the history
Empty list from Collection is immutable. Causes exception when trying to
add unmatched CLI options.
  • Loading branch information
fwendland authored Jul 5, 2022
1 parent cf3ac51 commit 5c1ff76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public static class ConfigFilePath {
public File configFile;

@Unmatched
public List<String> remainder = Collections.emptyList();
public List<String> remainder = new ArrayList<>();
}

// Combines all CLI Options from the different classes to be able to render a complete help message
Expand Down

0 comments on commit 5c1ff76

Please sign in to comment.