Kotlin: Respect override modifier in useless parameter query

This commit is contained in:
Tamas Vajk
2022-05-13 11:08:32 +02:00
parent 6af4b74528
commit 5ce2573cc1
2 changed files with 2 additions and 2 deletions

View File

@@ -302,6 +302,8 @@ class RootdefCallable extends Callable {
exists(MemberRefExpr mre | mre.getReferencedCallable() = this)
or
this.getAnAnnotation() instanceof OverrideAnnotation
or
this.hasModifier("override")
}
}