<p>FindBugs has found a potential bug in my code. But it is not a bug.</p>

<p>Is it possible to mark this occurrence as 'not a bug' AND have it removed from the bug list?</p>

<p>I have documented quite clearly why for each case it is not a bug.</p>

<p>For example. A class implements the comparable interface. it has the compareTo method. I have however not overridden the equals method.</p>

<p>FindBugs does not like this as the JavaDocs state that it is recommended that</p>

<pre><code>(x.compareTo(y)==0) == (x.equals(y))
</code></pre>

<p>Although in my case the above condition is and always will be true.</p>

Probably by adding a
filter
as parameter of findbugs
Match clauses can only match information that is actually contained in the bug instances
```
```
<Match>
   <Class name="com.foobar.MyClass" />
   <Method name="myMethod" />
   <Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS" />
</Match>
```
```