DEV Community

Discussion on: How to Make Your Reviewer Cry Using Java Optional

aaiezza profile image
Alessandro Aiezza

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.

dante0747 profile image
Majid Abarghooei Author

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.