Where I work some common library are used to check null.
One of the most common is org.apache.commons.collections.CollectionUtils where we use isNotEmpty to check a collection is both not-null and not empty.
I know they are a lot of this kind of library, and here are my questions:
- Can/should I edit the default rules that check null to include my own convention ?
- Is it better to have a new rules extending the default one, and disable the default one ?
- Is this the kind of rules that can be extended to Sonar, or with so many library that is not something you want to do 'by default' ?
Tristan.