DEV Community

Discussion on: Mitigate Null Pointer Exceptions in Java with Optional class

Collapse
 
elmuerte profile image
Michiel Hendriks

That's basically the only use I see for using Optional, clear communication that you might not get anything.
Because for the rest it is just as unsafe.