Skip to content

Commit cd356a5

Browse files
committed
Java: Improve join-order.
1 parent b5d4a2d commit cd356a5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ private predicate runner(Method m, int n, Method runmethod) {
1919
exists(Parameter p, MethodAccess ma, int j |
2020
p = m.getParameter(n) and
2121
ma.getEnclosingCallable() = m and
22-
runner(ma.getMethod().getSourceDeclaration(), j, _) and
23-
ma.getArgument(j) = p.getAnAccess()
22+
runner(pragma[only_bind_into](ma.getMethod().getSourceDeclaration()),
23+
pragma[only_bind_into](j), _) and
24+
ma.getArgument(pragma[only_bind_into](j)) = p.getAnAccess()
2425
)
2526
)
2627
}

0 commit comments

Comments
 (0)