If using more than one method name, the method elements have to be wrapped in an Or element

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1536490 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benedikt Ritter 2013-10-28 19:14:11 +00:00
parent 8b0cc5d9c4
commit c650b17f50
1 changed files with 3 additions and 1 deletions

View File

@ -51,8 +51,10 @@
<!-- Reason: methods are supposed to fall back to default encoding if no charset is specified -->
<Match>
<Class name="org.apache.commons.lang3.StringUtils" />
<Method name="toString" />
<Or>
<Method name="toString" />
<Method name="toEncodedString" />
</Or>
<Bug pattern="DM_DEFAULT_ENCODING" />
</Match>