As noted https://github.com/spotbugs/spotbugs/issues/756,
this check is triggered by Java 11's desugraing of try-with-resources.
Change-Id: If826874c3023c85edcd40294329f6fff29ba66df
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
to override the method (assuming correct API design, of course) is to provide a more efficient
implementation. This rule would be forcing a @SuppressFBWarnings on perfectly compliant classes. -->
<Bug pattern="EQ_DOESNT_OVERRIDE_EQUALS"/>
+
+ <!-- https://github.com/spotbugs/spotbugs/issues/756. spotbugs does not grok Java 11's try-with-resources -->
+ <Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
</Or>
</Match>
</FindBugsFilter>