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


The following commit(s) were added to refs/heads/master by this push:
     new b430e8f8 Replace 2x empty lines with a single one
b430e8f8 is described below

commit b430e8f82dad96bb452eb706b9abedbc58db95a9
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Thu Dec 26 09:25:16 2024 -0500

    Replace 2x empty lines with a single one
---
 src/main/java/org/apache/commons/cli/CommandLine.java       | 2 --
 src/main/java/org/apache/commons/cli/Option.java            | 1 -
 src/test/java/org/apache/commons/cli/CommandLineTest.java   | 4 ----
 src/test/java/org/apache/commons/cli/HelpFormatterTest.java | 2 --
 src/test/java/org/apache/commons/cli/OptionsTest.java       | 1 -
 5 files changed, 10 deletions(-)

diff --git a/src/main/java/org/apache/commons/cli/CommandLine.java 
b/src/main/java/org/apache/commons/cli/CommandLine.java
index abea5441..ff1940af 100644
--- a/src/main/java/org/apache/commons/cli/CommandLine.java
+++ b/src/main/java/org/apache/commons/cli/CommandLine.java
@@ -407,7 +407,6 @@ public class CommandLine implements Serializable {
         return answer != null ? answer : get(defaultValue);
     }
 
-
     /**
      * Gets the first argument, if any, of this option.
      *
@@ -441,7 +440,6 @@ public class CommandLine implements Serializable {
         return getOptionValue(resolveOption(optionName), defaultValue);
     }
 
-
     /**
      * Gets the array of values, if any, of an option.
      *
diff --git a/src/main/java/org/apache/commons/cli/Option.java 
b/src/main/java/org/apache/commons/cli/Option.java
index c82f1ec1..8a85645f 100644
--- a/src/main/java/org/apache/commons/cli/Option.java
+++ b/src/main/java/org/apache/commons/cli/Option.java
@@ -665,7 +665,6 @@ public class Option implements Cloneable, Serializable {
         return since;
     }
 
-
     /**
      * Gets the type of this Option.
      *
diff --git a/src/test/java/org/apache/commons/cli/CommandLineTest.java 
b/src/test/java/org/apache/commons/cli/CommandLineTest.java
index 7b8d9398..9ba2eb76 100644
--- a/src/test/java/org/apache/commons/cli/CommandLineTest.java
+++ b/src/test/java/org/apache/commons/cli/CommandLineTest.java
@@ -90,7 +90,6 @@ public class CommandLineTest {
         lst.add(Arguments.of(new String[] {"--you"}, optT, optionGroup, false, 
null, false, null, optU));
         lst.add(Arguments.of(new String[] {"--you", "foo"}, optT, optionGroup, 
false, null, false, "foo", optU));
 
-
         // U set
         lst.add(Arguments.of(new String[] {"-T"}, optU, optionGroup, false, 
null, true, null, optT));
         lst.add(Arguments.of(new String[] {"-T", "foo"}, optU, optionGroup, 
false, null, true, "foo", optT));
@@ -123,7 +122,6 @@ public class CommandLineTest {
         lst.add(Arguments.of(new String[] {"--you"}, optT, optionGroup, false, 
null, false, null, optU));
         lst.add(Arguments.of(new String[] {"--you", "foo", "bar"}, optT, 
optionGroup, false, null, false, foobar, optU));
 
-
         // U set
         lst.add(Arguments.of(new String[] {"-T"}, optU, optionGroup, false, 
null, true, null, optT));
         lst.add(Arguments.of(new String[] {"-T", "foo", "bar"}, optU, 
optionGroup, false, null, true, foobar, optT));
@@ -239,7 +237,6 @@ public class CommandLineTest {
         
options.addOption(Option.builder("i").hasArg().type(Number.class).build());
         options.addOption(Option.builder("c").hasArg().converter(s -> 
Count.valueOf(s.toUpperCase())).build());
 
-
         final CommandLineParser parser = new DefaultParser();
         final CommandLine cmd = parser.parse(options, new String[] {"-i", 
"foo", "-c", "bar"});
 
@@ -360,7 +357,6 @@ public class CommandLineTest {
         assertEquals(3, cmd.getOptions().length);
     }
 
-
     @Test
     public void testGetOptionsCtor() {
         final CommandLine cmd = new CommandLine();
diff --git a/src/test/java/org/apache/commons/cli/HelpFormatterTest.java 
b/src/test/java/org/apache/commons/cli/HelpFormatterTest.java
index fc9904eb..aaaccc4c 100644
--- a/src/test/java/org/apache/commons/cli/HelpFormatterTest.java
+++ b/src/test/java/org/apache/commons/cli/HelpFormatterTest.java
@@ -40,7 +40,6 @@ import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.Arguments;
 import org.junit.jupiter.params.provider.MethodSource;
 
-
 /**
  * Test case for the HelpFormatter class.
  */
@@ -57,7 +56,6 @@ public class HelpFormatterTest {
         HelpFormatter hf = HelpFormatter.builder().get();
         lst.add(Arguments.of(hf, option, "[Deprecated] dddd dddd dddd"));
 
-
         hf = HelpFormatter.builder().setShowDeprecated(false).get();
         lst.add(Arguments.of(hf, option, "dddd dddd dddd"));
 
diff --git a/src/test/java/org/apache/commons/cli/OptionsTest.java 
b/src/test/java/org/apache/commons/cli/OptionsTest.java
index be1fb0fb..fd9a8b8d 100644
--- a/src/test/java/org/apache/commons/cli/OptionsTest.java
+++ b/src/test/java/org/apache/commons/cli/OptionsTest.java
@@ -17,7 +17,6 @@
 
 package org.apache.commons.cli;
 
-
 import static org.junit.jupiter.api.Assertions.assertArrayEquals;
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertFalse;

Reply via email to