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 4deafd4 Make private static classes final
4deafd4 is described below
commit 4deafd435aa062fccf3a8e4cf26efa9c9ad5fac2
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Oct 10 16:04:22 2023 -0400
Make private static classes final
---
src/test/java/org/apache/commons/cli/OptionTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/commons/cli/OptionTest.java
b/src/test/java/org/apache/commons/cli/OptionTest.java
index 6650357..7cc84f8 100644
--- a/src/test/java/org/apache/commons/cli/OptionTest.java
+++ b/src/test/java/org/apache/commons/cli/OptionTest.java
@@ -29,7 +29,7 @@ import org.junit.Test;
public class OptionTest {
- private static class DefaultOption extends Option {
+ private static final class DefaultOption extends Option {
private static final long serialVersionUID = 1L;
private final String defaultValue;
@@ -45,7 +45,7 @@ public class OptionTest {
}
}
- private static class TestOption extends Option {
+ private static final class TestOption extends Option {
private static final long serialVersionUID = 1L;
TestOption(final String opt, final boolean hasArg, final String
description) throws IllegalArgumentException {