commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1531445 - /commons/proper/lang/trunk/findbugs-exclude-filter.xml
Date Fri, 11 Oct 2013 22:04:51 GMT
Author: britter
Date: Fri Oct 11 22:04:50 2013
New Revision: 1531445

URL: http://svn.apache.org/r1531445
Log:
Add FindBugs exclusion for toString(byte[], String)

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=1531445&r1=1531444&r2=1531445&view=diff
==============================================================================
--- commons/proper/lang/trunk/findbugs-exclude-filter.xml (original)
+++ commons/proper/lang/trunk/findbugs-exclude-filter.xml Fri Oct 11 22:04:50 2013
@@ -48,6 +48,13 @@
     <Bug pattern="NP_BOOLEAN_RETURN_NULL" />
   </Match>
 
+  <!-- Reason: toString to supposed to fall back to default encoding if no charsetName
is passed in -->
+  <Match>
+    <Class name="org.apache.commons.lang3.StringUtils" />
+    <Method name="toString" />
+    <Bug pattern="DM_DEFAULT_ENCODING" />
+  </Match>
+
   <!-- Reason: base class cannot be changed and field is properly checked against null
so behavior is OK -->
   <Match>
     <Class name="org.apache.commons.lang3.text.ExtendedMessageFormat" />



Mime
View raw message