mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 15:53:36 +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>
|
||||
<property name="xpath">
|
||||
<value><![CDATA[
|
||||
//ClassOrInterfaceDeclaration[.//PrimaryExpression[PrimaryPrefix/Name[@Image = 'Logger.getLogger']]
|
||||
and not(@Image = .//PrimaryExpression[PrimaryPrefix/Name[@Image = 'Logger.getLogger']]
|
||||
/PrimarySuffix
|
||||
/Arguments
|
||||
/ArgumentList
|
||||
/Expression
|
||||
/PrimaryExpression
|
||||
/PrimaryPrefix
|
||||
/ResultType
|
||||
/Type
|
||||
/ReferenceType
|
||||
/ClassOrInterfaceType/@Image
|
||||
)] ]]></value>
|
||||
//PrimaryExpression[
|
||||
PrimaryPrefix/Name/@Image = 'Logger.getLogger'
|
||||
and
|
||||
not(PrimarySuffix/
|
||||
Arguments/
|
||||
ArgumentList/
|
||||
Expression/
|
||||
PrimaryExpression/
|
||||
PrimaryPrefix/
|
||||
ResultType/
|
||||
Type/
|
||||
ReferenceType/
|
||||
ClassOrInterfaceType/
|
||||
@Image = ancestor::ClassOrInterfaceDeclaration/@Image)
|
||||
] ]]></value>
|
||||
</property>
|
||||
</properties>
|
||||
<example><![CDATA[
|
||||
|
||||
Reference in New Issue
Block a user