Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2
-
None
Description
OptionValidator#validateOption
It states in its JavaDoc that:
Validates whether opt is a permissible Option shortOpt. The rules that specify if the opt is valid are:
- it is not NULL
- it is a single character that is either ' '(special case), '?', '@' or a letter
- it is a multi characterthat only contains letters.
The first check in the code though is:
// check that opt is not NULL
if (opt == null)
Consider changing to...
// check that opt is not NULL
if (opt == null)