]> source.dussan.org Git - jgit.git/commitdiff
[findBugs] Silence returning null for StringUtils.toBooleanOrNull() 38/4638/1
authorMatthias Sohn <matthias.sohn@sap.com>
Wed, 16 Nov 2011 19:47:12 +0000 (20:47 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 16 Nov 2011 19:55:34 +0000 (20:55 +0100)
As the method name and its javadoc clearly state that this method can
return null we can ignore this FindBugs warning.

Change-Id: I366435e26eda5d910f5d1a907db51f08efd4bb8c
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml

index 073f3da9d562c785da0333eaea38d68a84f34bb1..b8f300740a6784abb6ae559ba7e7dc198380daff 100644 (file)
        <Class name="org.eclipse.jgit.util.TemporaryBuffer$BlockInputStream" />
        <Bug pattern="UR_UNINIT_READ" />
      </Match>
+
+     <!-- Silence returning null for Boolean return type -->
+     <Match>
+       <Class name="org.eclipse.jgit.util.StringUtils" />
+       <Method name="toBooleanOrNull" />
+       <Bug pattern="NP_BOOLEAN_RETURN_NULL" />
+     </Match>
 </FindBugsFilter>