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 8ba7c15e [Javadoc] Fix Checkstyle error
8ba7c15e is described below
commit 8ba7c15efb8bd90fe8e3b01635741335adb88c3b
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Apr 1 13:58:03 2026 -0400
[Javadoc] Fix Checkstyle error
- This can only happen if you use the latest version of Checkstyle
available from commons-parent:98-SNAPSHOT
- [ERROR]
src/main/java/org/apache/commons/cli/OptionValidator.java:[101] (imports)
UnusedImports: Javadoc comment at column 8 has parse error. Details: no
viable alternative at input '</' while parsing HTML_ELEMENT
---
src/main/java/org/apache/commons/cli/OptionValidator.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/cli/OptionValidator.java
b/src/main/java/org/apache/commons/cli/OptionValidator.java
index 5227d5e4..db2688ae 100644
--- a/src/main/java/org/apache/commons/cli/OptionValidator.java
+++ b/src/main/java/org/apache/commons/cli/OptionValidator.java
@@ -98,8 +98,9 @@ final class OptionValidator {
* <li>a single character {@code opt} that is either Chars.SP(special
case), '?', '@' or a letter</li>
* <li>a multi character {@code opt} that only contains valid
characters</li>
* </ul>
- * </p><p>
+ * <p>
* A character is valid if any of the following conditions are true:
+ * </p>
* <ul>
* <li>it is a letter</li>
* <li>it is a currency symbol (such as '$')</li>
@@ -111,8 +112,9 @@ final class OptionValidator {
* <li>isIdentifierIgnorable returns true for the character</li>
* <li>it is a hyphen/dash ('-')</li>
* </ul>
- * </p><p>
+ * <p>
* In case {@code opt} is {@code null} no further validation is performed.
+ * </p>
*
* @param option The option string to validate, may be null.
* @throws IllegalArgumentException if the Option is not valid.