mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Adjust code based on review
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user