You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 30, 2019. It is now read-only.
Expression language in Java EE 8 should bring special treatment for java.util.Optional, similar like it does for maps and lists:
When a base expression evaluates to instance of java.util.Optional, and the property name is not equal present, the result of the evaluation shall be equivalent to calling method map or flatMap on the optional:
if the base {{Optional]} has value:
evaluate the property against the value of the property,
if the result of an evaluation is instance of an Optional
return the value; otherwise
return the value wrapped in an Optional
if base optional, doesn't have value, return Optional.empty()
The property present is evaluated by invoking the method isPresent() of the base object.