Skip to content

Commit 8ba7c15

Browse files
committed
[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
1 parent 05e38fc commit 8ba7c15

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ private static boolean search(final char[] chars, final char c) {
9898
* <li>a single character {@code opt} that is either Chars.SP(special case), '?', '@' or a letter</li>
9999
* <li>a multi character {@code opt} that only contains valid characters</li>
100100
* </ul>
101-
* </p><p>
101+
* <p>
102102
* A character is valid if any of the following conditions are true:
103+
* </p>
103104
* <ul>
104105
* <li>it is a letter</li>
105106
* <li>it is a currency symbol (such as '$')</li>
@@ -111,8 +112,9 @@ private static boolean search(final char[] chars, final char c) {
111112
* <li>isIdentifierIgnorable returns true for the character</li>
112113
* <li>it is a hyphen/dash ('-')</li>
113114
* </ul>
114-
* </p><p>
115+
* <p>
115116
* In case {@code opt} is {@code null} no further validation is performed.
117+
* </p>
116118
*
117119
* @param option The option string to validate, may be null.
118120
* @throws IllegalArgumentException if the Option is not valid.

0 commit comments

Comments
 (0)