Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.4.5
-
None
Description
In the spirit of the rest of the Groovy truth semantics, I suggest that an empty java.util.Optional, which is essentially a stream-safe equivalent of null, should evaluate to false: asBoolean() should simply delegate to isPresent().
Attachments
Issue Links
- is related to
-
GROOVY-6744 Have the elvis operator (?:) support the Optional type in Java 8
- Closed
- links to