
How to Spot When Optional is Being Used Incorrectly
Ever since Java 8 was introduced (and that was some time ago), it’s surprising how many code smells creep in by the incorrect use of Optional. In this article I’m going to show the most common examples of this and explain how to resolve them. To keep it simple, I will explain this without going into…