mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Kotlin: Excluded compiler generated methods from java/confusing-method-signature
This commit is contained in:
@@ -137,6 +137,8 @@ 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()
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
| Test.kt:12:5:12:45 | fn$default | Method A.fn$default(..) could be confused with overloaded method $@, since dispatch depends on static types. | Test.kt:13:5:13:40 | fn$default | fn$default |
|
||||
|
||||
Reference in New Issue
Block a user