Skip to content

Commit b430e8f

Browse files
committed
Replace 2x empty lines with a single one
1 parent 5665ebe commit b430e8f

File tree

5 files changed

+0
-10
lines changed

5 files changed

+0
-10
lines changed

src/main/java/org/apache/commons/cli/CommandLine.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ public String getOptionValue(final OptionGroup optionGroup, final Supplier<Strin
407407
return answer != null ? answer : get(defaultValue);
408408
}
409409

410-
411410
/**
412411
* Gets the first argument, if any, of this option.
413412
*
@@ -441,7 +440,6 @@ public String getOptionValue(final String optionName, final Supplier<String> def
441440
return getOptionValue(resolveOption(optionName), defaultValue);
442441
}
443442

444-
445443
/**
446444
* Gets the array of values, if any, of an option.
447445
*

src/main/java/org/apache/commons/cli/Option.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,6 @@ public String getSince() {
665665
return since;
666666
}
667667

668-
669668
/**
670669
* Gets the type of this Option.
671670
*

src/test/java/org/apache/commons/cli/CommandLineTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ private static Stream<Arguments> createOptionValueParameters() throws ParseExcep
9090
lst.add(Arguments.of(new String[] {"--you"}, optT, optionGroup, false, null, false, null, optU));
9191
lst.add(Arguments.of(new String[] {"--you", "foo"}, optT, optionGroup, false, null, false, "foo", optU));
9292

93-
9493
// U set
9594
lst.add(Arguments.of(new String[] {"-T"}, optU, optionGroup, false, null, true, null, optT));
9695
lst.add(Arguments.of(new String[] {"-T", "foo"}, optU, optionGroup, false, null, true, "foo", optT));
@@ -123,7 +122,6 @@ private static Stream<Arguments> createOptionValuesParameters() throws ParseExce
123122
lst.add(Arguments.of(new String[] {"--you"}, optT, optionGroup, false, null, false, null, optU));
124123
lst.add(Arguments.of(new String[] {"--you", "foo", "bar"}, optT, optionGroup, false, null, false, foobar, optU));
125124

126-
127125
// U set
128126
lst.add(Arguments.of(new String[] {"-T"}, optU, optionGroup, false, null, true, null, optT));
129127
lst.add(Arguments.of(new String[] {"-T", "foo", "bar"}, optU, optionGroup, false, null, true, foobar, optT));
@@ -239,7 +237,6 @@ public void testBadGetParsedOptionValue() throws Exception {
239237
options.addOption(Option.builder("i").hasArg().type(Number.class).build());
240238
options.addOption(Option.builder("c").hasArg().converter(s -> Count.valueOf(s.toUpperCase())).build());
241239

242-
243240
final CommandLineParser parser = new DefaultParser();
244241
final CommandLine cmd = parser.parse(options, new String[] {"-i", "foo", "-c", "bar"});
245242

@@ -360,7 +357,6 @@ public void testGetOptionsBuilder() {
360357
assertEquals(3, cmd.getOptions().length);
361358
}
362359

363-
364360
@Test
365361
public void testGetOptionsCtor() {
366362
final CommandLine cmd = new CommandLine();

src/test/java/org/apache/commons/cli/HelpFormatterTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ Licensed to the Apache Software Foundation (ASF) under one or more
4040
import org.junit.jupiter.params.provider.Arguments;
4141
import org.junit.jupiter.params.provider.MethodSource;
4242

43-
4443
/**
4544
* Test case for the HelpFormatter class.
4645
*/
@@ -57,7 +56,6 @@ static Stream<Arguments> deprecatedOptionsProvider() {
5756
HelpFormatter hf = HelpFormatter.builder().get();
5857
lst.add(Arguments.of(hf, option, "[Deprecated] dddd dddd dddd"));
5958

60-
6159
hf = HelpFormatter.builder().setShowDeprecated(false).get();
6260
lst.add(Arguments.of(hf, option, "dddd dddd dddd"));
6361

src/test/java/org/apache/commons/cli/OptionsTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Licensed to the Apache Software Foundation (ASF) under one or more
1717

1818
package org.apache.commons.cli;
1919

20-
2120
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
2221
import static org.junit.jupiter.api.Assertions.assertEquals;
2322
import static org.junit.jupiter.api.Assertions.assertFalse;

0 commit comments

Comments
 (0)