Java: cache overrides

This commit is contained in:
Anders Schack-Mulligen
2021-11-17 09:16:58 +01:00
parent d408105fad
commit 69671ce90d

View File

@@ -307,6 +307,7 @@ private predicate overridesCandidateType(RefType tsup, string sig, RefType t, Me
* ignoring any access modifiers. Additionally, this predicate binds
* `t1` to the type declaring `m1` and `t2` to the type declaring `m2`.
*/
cached
predicate overridesIgnoringAccess(Method m1, RefType t1, Method m2, RefType t2) {
exists(string sig |
overridesCandidateType(t2, sig, t1, m1) and