Skip to content

Commit 30a891c

Browse files
committed
Java: Fix compilation errors.
1 parent 51dfb31 commit 30a891c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

java/ql/src/Telemetry/ExternalApi.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class ExternalApi extends Callable {
6969

7070
/** Holds if this API has a supported summary. */
7171
predicate hasSummary() {
72-
this instanceof SummarizedCallable or
72+
this = any(SummarizedCallable sc).asCallable() or
7373
TaintTracking::localAdditionalTaintStep(this.getAnInput(), _)
7474
}
7575

java/ql/src/Telemetry/UnsupportedExternalAPIs.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import ExternalApi
1414
private predicate relevant(ExternalApi api) {
1515
not api.isUninteresting() and
1616
not api.isSupported() and
17-
not api instanceof FlowSummaryImpl::Public::NegativeSummarizedCallable
17+
not api = any(FlowSummaryImpl::Public::NegativeSummarizedCallable nsc).asCallable()
1818
}
1919

2020
from string apiName, int usages

0 commit comments

Comments
 (0)