File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -188,7 +188,6 @@ public Properties getOptionProperties(final Option option) {
188188 processPropertiesFromValues (props , processedOption .getValuesList ());
189189 }
190190 }
191-
192191 return props ;
193192 }
194193
@@ -209,7 +208,6 @@ public Properties getOptionProperties(final String opt) {
209208 processPropertiesFromValues (props , option .getValuesList ());
210209 }
211210 }
212-
213211 return props ;
214212 }
215213
@@ -348,13 +346,11 @@ public String[] getOptionValues(final char opt) {
348346 */
349347 public String [] getOptionValues (final Option option ) {
350348 final List <String > values = new ArrayList <>();
351-
352349 for (final Option processedOption : options ) {
353350 if (processedOption .equals (option )) {
354351 values .addAll (processedOption .getValuesList ());
355352 }
356353 }
357-
358354 return values .isEmpty () ? null : values .toArray (EMPTY_STRING_ARRAY );
359355 }
360356
@@ -440,7 +436,6 @@ public <T> T getParsedOptionValue(final Option option) throws ParseException {
440436 @ SuppressWarnings ("unchecked" )
441437 public <T > T getParsedOptionValue (final Option option , final Supplier <T > defaultValue ) throws ParseException {
442438 final String res = option == null ? null : getOptionValue (option );
443-
444439 try {
445440 if (res == null ) {
446441 return defaultValue == null ? null : defaultValue .get ();
You can’t perform that action at this time.
0 commit comments