Extract override modifier

This commit is contained in:
Tamas Vajk
2022-04-07 09:30:03 +02:00
committed by Ian Lynagh
parent 92de139805
commit 505ccbbcf6
3 changed files with 5 additions and 3 deletions

View File

@@ -21,6 +21,7 @@ from OverridingMethod m, Method overridden
where
m.fromSource() and
m.overrides(overridden) and
not m.hasModifier("override") and
not m.isOverrideAnnotated() and
not exists(FunctionalExpr mref | mref.asMethod() = m)
select m, "This method overrides $@; it is advisable to add an Override annotation.", overridden,