Skip to content

Commit 69671ce

Browse files
committed
Java: cache overrides
1 parent d408105 commit 69671ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/ql/lib/semmle/code/java/Member.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ private predicate overridesCandidateType(RefType tsup, string sig, RefType t, Me
307307
* ignoring any access modifiers. Additionally, this predicate binds
308308
* `t1` to the type declaring `m1` and `t2` to the type declaring `m2`.
309309
*/
310+
cached
310311
predicate overridesIgnoringAccess(Method m1, RefType t1, Method m2, RefType t2) {
311312
exists(string sig |
312313
overridesCandidateType(t2, sig, t1, m1) and

0 commit comments

Comments
 (0)