Command methods should pass null
for unmatched primitive wrapper options
#538
Labels
Milestone
null
for unmatched primitive wrapper options
#538
Currently, when command methods have an option whose type is a primitive wrapper, like below:
If this command is invoked without a
-x
option, so the option is not matched, the value passed to the method isInteger.valueOf(0)
. This is correct when the option type is a primitiveint
, but not for an objectInteger
primitive wrapper.Test to reproduce:
The text was updated successfully, but these errors were encountered: