You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2013/01/22 17:08:03 UTC

svn commit: r1437017 - /commons/proper/collections/trunk/findbugs-exclude-filter.xml

Author: tn
Date: Tue Jan 22 16:08:03 2013
New Revision: 1437017

URL: http://svn.apache.org/viewvc?rev=1437017&view=rev
Log:
 Add findbugs exclude for ComparatorChain.

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

Modified: commons/proper/collections/trunk/findbugs-exclude-filter.xml
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/findbugs-exclude-filter.xml?rev=1437017&r1=1437016&r2=1437017&view=diff
==============================================================================
--- commons/proper/collections/trunk/findbugs-exclude-filter.xml (original)
+++ commons/proper/collections/trunk/findbugs-exclude-filter.xml Tue Jan 22 16:08:03 2013
@@ -59,4 +59,11 @@
     <Bug pattern="EQ_UNUSUAL" />
   </Match>
 
+  <!-- The compare method in ComparatorChain has to handle a corner-case for Integer.MIN_VALUE -->
+  <Match>
+    <Class name="org.apache.commons.collections.comparators.ComparatorChain" />
+    <Method name="compare" params="java.lang.Object, java.lang.Object" returns="int" />
+    <Bug pattern="RV_CHECK_COMPARETO_FOR_SPECIFIC_RETURN_VALUE" />
+  </Match>
+
 </FindBugsFilter>