Author: markt
Date: Wed Feb 26 14:59:10 2014
New Revision: 1572072
URL: http://svn.apache.org/r1572072
Log:
Exclude a common false positive
Mock objects often return null for unimplemented methods.
Modified:
commons/proper/dbcp/trunk/findbugs-exclude-filter.xml
Modified: commons/proper/dbcp/trunk/findbugs-exclude-filter.xml
URL:
http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/findbugs-exclude-filter.xml?rev=1572072&r1=1572071&r2=1572072&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/findbugs-exclude-filter.xml (original)
+++ commons/proper/dbcp/trunk/findbugs-exclude-filter.xml Wed Feb 26 14:59:10
2014
@@ -22,4 +22,10 @@
put here to instruct findbugs it must ignore them.
-->
<FindBugsFilter>
+ <!-- Unit tests -->
+ <Match>
+ <!-- Mock objects often return null for unimplemented methods. -->
+ <Class name="~.*\.Tester.*"/>
+ <Bug pattern="NP_NONNULL_RETURN_VIOLATION" />
+ </Match>
</FindBugsFilter>