Reputation: 2681
I can't find the name of the detector that reports the "Redundant nullcheck" (RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE) anyone who knows which it is? Googling just gives me tons of project reports...
I get a lot of errors on it since I use JetBrains @NotNull
annotations tool (it inserts null checks into the bytecode).
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5.2</version>
<configuration>
<omitVisitors>???WhatIsTheDetectorsName???</omitVisitors>
</configuration>
</plugin>
Thanks in advance
Upvotes: 5
Views: 3438
Reputation: 13988
From the findbugs-maven-plugin usage documentation states that the visitors
/omitVisitors
options both specify a comma-separated list of bug detectors which should be run/not run. The bug detectors are specified by their class names, without any package qualification.
The class which checks for the redundant null check of non-null value is, as far as I can tell, FindNullDeref. However it does a number of other checks as well, so you would also be turning them off. Not sure if it is possible to turn off just that one check that is bothering you.
Upvotes: 4