Skip to content

Commit f224a40

Browse files
author
Stephan Brandauer
committed
Java: use containing call as call context, not argument
1 parent 33fdb0f commit f224a40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/Telemetry/AutomodelApplicationModeCharacteristics.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ module ApplicationCandidatesImpl implements SharedCharacteristics::CandidateSig
9595
*/
9696
RelatedLocation getRelatedLocation(Endpoint e, RelatedLocationType type) {
9797
type = CallContext() and
98-
result = asLocation(e)
98+
result = any(Call c | e.asExpr() = [c.getAnArgument(), c.getQualifier()])
9999
}
100100

101101
/**

0 commit comments

Comments
 (0)