@NotNull and Optional parsed argument values #440
Labels
enhancement
New feature or request
implemented for next release
This has been implemented in the current dev build for the next public release
Description
Could we maybe have get(int) in our arguments with @NotNull and as replacement Optional getOptional(int)? In most cases the argument can't be null and if its supposed to potentially be, one could use the optional getter. An exception could be thrown in the get method if the object is expected to be notnull but is null
Expected code
Before:
After:
Extra details
No response
The text was updated successfully, but these errors were encountered: