Adjust code based on review

This commit is contained in:
Tamas Vajk
2022-11-02 09:46:46 +01:00
parent ec5ac17f87
commit a7cc8fced5

View File

@@ -57,6 +57,8 @@ private predicate candidateMethod(RefType t, Method m, string name, int numParam
m.getNumberOfParameters() = numParam and
m = m.getSourceDeclaration() and
not m.getAnAnnotation() instanceof DeprecatedAnnotation and
// Exclude compiler generated methods, such as Kotlin `$default` methods:
not m.isCompilerGenerated() and
not whitelist(name)
}
@@ -137,8 +139,6 @@ private predicate delegate(Method caller, Method callee) {
from Method m, Method n, string messageQualifier
where
// Exclude compiler generated methods, such as Kotlin `$default` methods:
not m.isCompilerGenerated() and
confusinglyOverloaded(m, n) and
(
if m.getDeclaringType() = n.getDeclaringType()