mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 00:29:21 +01:00
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:
@@ -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[
|
||||||
|
|||||||
Reference in New Issue
Block a user