Selaa lähdekoodia

[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>
tags/v1.2.0.201112221803-r
Matthias Sohn 12 vuotta sitten
vanhempi
commit
c0780bcb99
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7
    0
      org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml

+ 7
- 0
org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml Näytä tiedosto

<Class name="org.eclipse.jgit.util.TemporaryBuffer$BlockInputStream" /> <Class name="org.eclipse.jgit.util.TemporaryBuffer$BlockInputStream" />
<Bug pattern="UR_UNINIT_READ" /> <Bug pattern="UR_UNINIT_READ" />
</Match> </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> </FindBugsFilter>

Loading…
Peruuta
Tallenna