Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
Optional was meant to be used in public APIs to convey to the caller that they really need to null-check, not as an internal class to avoid doing our own null checks. There are better methods in Objects for that if we want them.
See also Brian Goetz at JavaOne - https://youtu.be/MFzlgAuanU0?t=2719
Attachments
Issue Links
- links to