Add missing @Override to overriding and implementing methods
MSALAdds @Override to methods overriding superclass methods or implementing interface methods. Annotating methods improves readability by showing the author's intent to override. Additionally, when annotated, the compiler will emit an error when a signature of the overridden method does not match the superclass method.
org. openrewrite. staticanalysis. MissingOverrideAnnotationOptional
ignoreAnonymousClassMethodsBoolean
When enabled, ignore missing annotations on methods which override methods when the class definition is within an anonymous class.
mod run . --recipe= org. openrewrite. staticanalysis. MissingOverrideAnnotationInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.