Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2011-11-16 19:47:12 +0000
committerMatthias Sohn2011-11-16 19:55:34 +0000
commitc0780bcb99de9195301ffdc2fcb16837161be5a4 (patch)
tree98b47c01630106c11ccb6d5cd96a56876fa322b1
parentafebe7880dea9e5243467f5113a7ebfa65f3c079 (diff)
downloadjgit-c0780bcb99de9195301ffdc2fcb16837161be5a4.tar.gz
jgit-c0780bcb99de9195301ffdc2fcb16837161be5a4.tar.xz
jgit-c0780bcb99de9195301ffdc2fcb16837161be5a4.zip
[findBugs] Silence returning null for StringUtils.toBooleanOrNull()
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>
-rw-r--r--org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml b/org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml
index 073f3da9d5..b8f300740a 100644
--- a/org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml
+++ b/org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml
@@ -45,4 +45,11 @@
<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>

Back to the top