diff --git a/pmd/rulesets/strings.xml b/pmd/rulesets/strings.xml index d293282d1c..3fc86ee8fa 100644 --- a/pmd/rulesets/strings.xml +++ b/pmd/rulesets/strings.xml @@ -306,9 +306,9 @@ StringBuffer size. [@Image='StringBuffer'] /../Arguments/ArgumentList/Expression/PrimaryExpression /PrimaryPrefix/ -Literal [(starts-with(@Image, "'"))][(ends-with -(@Image, "'"))] - +Literal + [starts-with(@Image, "'")] + [ends-with(@Image, "'")] ]]>