io.codemodder.codemods.AddMissingOverrideCodemod.description.md Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-codemods Show documentation
Show all versions of core-codemods Show documentation
Codemods for fixing common errors across many Java projects
This change adds missing `@Override` to known subclasses. Documenting inheritance will help readers and static analysis tools understand the code better, spot bugs easier, and in general lead to more efficient and effective review.
Our changes look something like this:
```diff
interface AcmeParent {
void doThing();
}
class AcmeChild implements AcmeParent {
+ @Override
void doThing() {
thing();
}
}
```