You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2026/01/04 15:58:51 UTC
(commons-cli) 01/02: Javadoc
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 ff13bdd94583e59bc37a01db00bceac61e07b893
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jan 4 10:56:13 2026 -0500
Javadoc
---
src/main/java/org/apache/commons/cli/OptionValidator.java | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/main/java/org/apache/commons/cli/OptionValidator.java b/src/main/java/org/apache/commons/cli/OptionValidator.java
index df79dc80..5227d5e4 100644
--- a/src/main/java/org/apache/commons/cli/OptionValidator.java
+++ b/src/main/java/org/apache/commons/cli/OptionValidator.java
@@ -21,11 +21,14 @@ package org.apache.commons.cli;
* Validates an Option string.
*/
final class OptionValidator {
- /* package private for testing access */
- /** The array of additional characters allowed as the first character in the option but not in the rest of the option */
- static final char[] ADDITIONAL_OPTION_CHARS = {'?', '@'};
- /** The array of additional characters allowed in the rest of the option but not in the first position */
- static final char[] ADDITIONAL_LONG_CHARS = {'-'};
+
+ /**
+ * The array of additional characters allowed as the first character in the option but not in the rest of the option. Package private for tests.
+ */
+ static final char[] ADDITIONAL_OPTION_CHARS = { '?', '@' };
+
+ /** The array of additional characters allowed in the rest of the option but not in the first position Package private for tests. */
+ static final char[] ADDITIONAL_LONG_CHARS = { '-' };
/**
* Returns whether the specified character is a valid character.