Skip to content

Commit ab334f6

Browse files
committed
Java: Always apply heuristic query regardless of existing models.
1 parent cd22bb3 commit ab334f6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

java/ql/lib/semmle/code/java/dispatch/WrappedInvocation.qll

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,9 @@ Method getRunnerTarget(MethodAccess ma) {
6262
import semmle.code.java.dataflow.FlowSummary
6363
import semmle.code.java.dataflow.internal.FlowSummaryImplSpecific as ImplSpecific
6464

65-
private predicate hasExternalSummary(Callable c) {
66-
exists(SummarizedCallableBase scb | scb.asCallable() = c |
67-
ImplSpecific::summaryElement(scb, _, _, _, _)
68-
)
69-
}
70-
7165
private predicate mayInvokeCallback(SrcMethod m, int n) {
7266
m.getParameterType(n).(RefType).getSourceDeclaration() instanceof FunctionalInterface and
73-
(not m.fromSource() or m.isNative() or m.getFile().getAbsolutePath().matches("%/test/stubs/%")) and
74-
not hasExternalSummary(m)
67+
(not m.fromSource() or m.isNative() or m.getFile().getAbsolutePath().matches("%/test/stubs/%"))
7568
}
7669

7770
private class SummarizedCallableWithCallback extends SummarizedCallable {

0 commit comments

Comments
 (0)