This is good, but I would have loved to see another common pitfall I see a lot of. And that is accepting an Optional as a constructor or method parameter.
Thanks for your comment. Exactly, you're right. I see it a lot. I tried to cover that in the first section ("What is Optional?"), where I referred to Optional's Javadoc.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is good, but I would have loved to see another common pitfall I see a lot of. And that is accepting an
Optional
as a constructor or method parameter.Thanks for your comment. Exactly, you're right. I see it a lot. I tried to cover that in the first section ("What is Optional?"), where I referred to Optional's Javadoc.