This change fixes "@Override should be used on overriding and implementing methods" (id = java:S1161) identified by Sonar.
Details
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.
Remediation
This change fixes "
@Override
should be used on overriding and implementing methods" (id = java:S1161) identified by Sonar.Details
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:
More reading
* [https://rules.sonarsource.com/java/RSPEC-1161/](https://rules.sonarsource.com/java/RSPEC-1161/)I have additional improvements ready for this repo! If you want to see them, leave the comment:
... and I will open a new PR right away!
🧚🤖 Powered by Pixeebot
Feedback | Community | Docs | Codemod ID: sonar:java/add-missing-override-s1161