forked from phoedos/pmd
Slightly improve performance of XPath Rule UseLocaleWithCaseConversions
This commit is contained in:
@@ -723,18 +723,19 @@ have unusual conventions, i.e. Turkish.
|
|||||||
<property name="xpath">
|
<property name="xpath">
|
||||||
<value>
|
<value>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
//PrimaryExpression[not(PrimaryPrefix/Name[ends-with(@Image, 'toHexString')])]
|
//PrimaryExpression
|
||||||
[
|
[
|
||||||
PrimaryPrefix
|
PrimaryPrefix
|
||||||
|
[Name[ends-with(@Image, 'toLowerCase') or ends-with(@Image, 'toUpperCase')]]
|
||||||
[following-sibling::PrimarySuffix[position() = 1]/Arguments[@ArgumentCount=0]]
|
[following-sibling::PrimarySuffix[position() = 1]/Arguments[@ArgumentCount=0]]
|
||||||
/Name[ends-with(@Image, 'toLowerCase') or ends-with(@Image, 'toUpperCase')]
|
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
PrimarySuffix
|
PrimarySuffix
|
||||||
[following-sibling::PrimarySuffix[position() = 1]/Arguments[@ArgumentCount=0]]
|
|
||||||
[ends-with(@Image, 'toLowerCase') or ends-with(@Image, 'toUpperCase')]
|
[ends-with(@Image, 'toLowerCase') or ends-with(@Image, 'toUpperCase')]
|
||||||
|
[following-sibling::PrimarySuffix[position() = 1]/Arguments[@ArgumentCount=0]]
|
||||||
]
|
]
|
||||||
|
[not(PrimaryPrefix/Name[ends-with(@Image, 'toHexString')])]
|
||||||
]]>
|
]]>
|
||||||
</value>
|
</value>
|
||||||
</property>
|
</property>
|
||||||
|
Reference in New Issue
Block a user