I use object != null
a lot to avoid NullPointerException.
Is there a good alternative to this?
For example I often use:
I like articles from Nat Pryce. Here are the links:
In the articles there is also a link to a Git repository for a Java Maybe Type which I find interesting, but I don't think it alone could decrease the checking code bloat. After doing some research on the Internet, I think != null code bloat could be decreased mainly by careful design.