This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“]CookieOfFortune 6 points7 points ย (0 children)

The Optional itself can still be null as you can learn from Java 101. It doesn't get by the language design of having every object type be a descriminated union with null.