You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2013/10/28 20:06:17 UTC

svn commit: r1536487 - /commons/proper/lang/trunk/findbugs-exclude-filter.xml

Author: britter
Date: Mon Oct 28 19:06:16 2013
New Revision: 1536487

URL: http://svn.apache.org/r1536487
Log:
Add exclusions where FindBugs seems to be unable to figure out that we acutally have a default statement

Modified:
    commons/proper/lang/trunk/findbugs-exclude-filter.xml

Modified: commons/proper/lang/trunk/findbugs-exclude-filter.xml
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/findbugs-exclude-filter.xml?rev=1536487&r1=1536486&r2=1536487&view=diff
==============================================================================
--- commons/proper/lang/trunk/findbugs-exclude-filter.xml (original)
+++ commons/proper/lang/trunk/findbugs-exclude-filter.xml Mon Oct 28 19:06:16 2013
@@ -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>