This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-cli.git
commit 1b44795e647d5817c6c68e4db3a1caacd341bc28 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Mar 26 11:27:09 2024 -0400 Whitespace --- src/main/java/org/apache/commons/cli/CommandLine.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/org/apache/commons/cli/CommandLine.java b/src/main/java/org/apache/commons/cli/CommandLine.java index bb553b3..6c14733 100644 --- a/src/main/java/org/apache/commons/cli/CommandLine.java +++ b/src/main/java/org/apache/commons/cli/CommandLine.java @@ -188,7 +188,6 @@ public class CommandLine implements Serializable { processPropertiesFromValues(props, processedOption.getValuesList()); } } - return props; } @@ -209,7 +208,6 @@ public class CommandLine implements Serializable { processPropertiesFromValues(props, option.getValuesList()); } } - return props; } @@ -348,13 +346,11 @@ public class CommandLine implements Serializable { */ public String[] getOptionValues(final Option option) { final List<String> values = new ArrayList<>(); - for (final Option processedOption : options) { if (processedOption.equals(option)) { values.addAll(processedOption.getValuesList()); } } - return values.isEmpty() ? null : values.toArray(EMPTY_STRING_ARRAY); } @@ -440,7 +436,6 @@ public class CommandLine implements Serializable { @SuppressWarnings("unchecked") public <T> T getParsedOptionValue(final Option option, final Supplier<T> defaultValue) throws ParseException { final String res = option == null ? null : getOptionValue(option); - try { if (res == null) { return defaultValue == null ? null : defaultValue.get();