From 3f1302fc93afefce471638944435acd86b63b180 Mon Sep 17 00:00:00 2001 From: Xavier Le Vourch Date: Fri, 26 Oct 2007 17:14:41 +0000 Subject: [PATCH] code cleanup: xpath rule simplification git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5593 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/rulesets/strings.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, "'")] ]]>