Skip to content

Commit d2d884b

Browse files
author
Stephan Brandauer
committed
special case for Argument[this]
1 parent 7ae6a99 commit d2d884b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

java/ql/src/Telemetry/AutomodelFrameworkModeCharacteristics.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ module FrameworkCandidatesImpl implements SharedCharacteristics::CandidateSig {
9898
FrameworkCandidatesImpl::getCallable(e).hasQualifiedName(package, type, name) and
9999
signature = ExternalFlow::paramsString(getCallable(e)) and
100100
ext = "" and
101-
exists(int paramIdx | e.isParameterOf(_, paramIdx) | input = "Argument[" + paramIdx + "]")
101+
exists(int paramIdx | e.isParameterOf(_, paramIdx) |
102+
if paramIdx = -1 then input = "Argument[this]" else input = "Argument[" + paramIdx + "]"
103+
)
102104
}
103105

104106
/**

0 commit comments

Comments
 (0)