Merge pull request #248 from colezlaw/xpathfix

Fixed the Xpath expression to be more accurate and to find the getLog…

Former-commit-id: 43c480a97da111436353fbb1bb6f686eddaf89dd
This commit is contained in:
Jeremy Long
2015-06-06 06:13:33 -04:00

View File

@@ -37,19 +37,21 @@ the work on the Logger.
<properties> <properties>
<property name="xpath"> <property name="xpath">
<value><![CDATA[ <value><![CDATA[
//ClassOrInterfaceDeclaration[.//PrimaryExpression[PrimaryPrefix/Name[@Image = 'Logger.getLogger']] //PrimaryExpression[
and not(@Image = .//PrimaryExpression[PrimaryPrefix/Name[@Image = 'Logger.getLogger']] PrimaryPrefix/Name/@Image = 'Logger.getLogger'
/PrimarySuffix and
/Arguments not(PrimarySuffix/
/ArgumentList Arguments/
/Expression ArgumentList/
/PrimaryExpression Expression/
/PrimaryPrefix PrimaryExpression/
/ResultType PrimaryPrefix/
/Type ResultType/
/ReferenceType Type/
/ClassOrInterfaceType/@Image ReferenceType/
)] ]]></value> ClassOrInterfaceType/
@Image = ancestor::ClassOrInterfaceDeclaration/@Image)
] ]]></value>
</property> </property>
</properties> </properties>
<example><![CDATA[ <example><![CDATA[