4 ms·
Now with Optional in Java 8 its not an issue.
by angryasian 11y ago
Now with Optional in Java 8 its not an issue.
- alexkindel 11y agoOptional is great, but it would be far more powerful if types not wrapped in Optional were guaranteed to not be null.
- TheCoelacanth 11y agoAnd if Optional values themselves were guaranteed not to be null.
- wtetzner 11y agoIt's still an issue, because as far as the type system is concerned, every reference type can still be null. Optional gives you a way to avoid using nulls, but null is still in the language and libraries still use it.