java.util.Optional Converter
Last modified by Vincent Massol on 2026/02/17 17:36
The Converter Manager now supports converting Optionals:
- from X to Optional<Y>, if conversion from X to Y is possible
- from Optional<X> to Optional<Y>, if conversion from X to Y is possible.
This means, for instance, that from now on you can call methods that have Optional arguments from Velocity, by passing the actual value or null for an empty optional.