Skip to content

Commit 818e75b

Browse files
committed
Java: Fix compilation error in telemetry lib.
1 parent 89a6cdc commit 818e75b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/ql/src/Telemetry/ExternalAPI.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ class ExternalAPI extends Callable {
4848
private DataFlow::Node getAnInput() {
4949
exists(Call call | call.getCallee().getSourceDeclaration() = this |
5050
result.asExpr().(Argument).getCall() = call or
51-
result.(ArgumentNode).getCall() = call
51+
result.(ArgumentNode).getCall().asCall() = call
5252
)
5353
}
5454

5555
/** Gets a node that is an output from a call to this API. */
5656
private DataFlow::Node getAnOutput() {
5757
exists(Call call | call.getCallee().getSourceDeclaration() = this |
5858
result.asExpr() = call or
59-
result.(DataFlow::PostUpdateNode).getPreUpdateNode().(ArgumentNode).getCall() = call
59+
result.(DataFlow::PostUpdateNode).getPreUpdateNode().(ArgumentNode).getCall().asCall() = call
6060
)
6161
}
6262

0 commit comments

Comments
 (0)