code cleanup: xpath rule simplification

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5592 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Xavier Le Vourch
2007-10-26 17:06:22 +00:00
parent b4f4e3c098
commit eef9e5ee35

View File

@ -341,16 +341,7 @@ public class SomeEJB extends EJBObject implements EJBLocalHome {
<property name="xpath">
<value>
<![CDATA[
//ClassOrInterfaceType
[
(starts-with(@Image,'Thread')
and
ends-with(@Image,'Thread')
) or
(starts-with(@Image,'Runnable')
and
ends-with(@Image,'Runnable') )
]
//ClassOrInterfaceType[@Image = 'Thread' or @Image = 'Runnable']
]]>
</value>
</property>