Add exclusions where FindBugs seems to be unable to figure out that we acutally have a default statement

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1536487 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benedikt Ritter 2013-10-28 19:06:16 +00:00
parent 21b12e810a
commit 8b0cc5d9c4
1 changed files with 18 additions and 0 deletions

View File

@ -131,4 +131,22 @@
<Bug pattern="DM_NUMBER_CTOR" />
</Match>
<!-- Reason: FindBugs 2.0.2 used in maven-findbugs-plugin 2.5.2 seems to have problems with detection of default cases
in switch statements. All the excluded methods have switch statements that conatin a default case. -->
<Match>
<Class name="org.apache.commons.lang3.math.NumberUtils"/>
<Method name="createNumber" />
<Bug pattern="SF_SWITCH_NO_DEFAULT" />
</Match>
<Match>
<Class name="org.apache.commons.lang3.text.ExtendedMessageFormat"/>
<Method name="insertFormats" />
<Bug pattern="SF_SWITCH_NO_DEFAULT" />
</Match>
<Match>
<Class name="org.apache.commons.lang3.time.FastDateParser"/>
<Method name="getStrategy" />
<Bug pattern="SF_SWITCH_NO_DEFAULT" />
</Match>
</FindBugsFilter>