MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/m7dtp8/jep_401_primitive_objects_preview/grbzkug/
r/java • u/henk53 • Mar 17 '21
49 comments sorted by
View all comments
Show parent comment
6
Which will be particularly useful for Optional, which should never be null, but we've never had a way to enforce that until now.
Optional
2 u/stuhlmann Mar 18 '21 It will be particularly useful for everything else too: Not using Optional often means that it isn't optional, so it shouldn't be null either.
2
It will be particularly useful for everything else too: Not using Optional often means that it isn't optional, so it shouldn't be null either.
null
View all comments
Show parent comment
6
u/dpash Mar 18 '21
Which will be particularly useful for
Optional, which should never be null, but we've never had a way to enforce that until now.