It's clear that having @Override
annotation on overriding methods is a good practice. Is there an automatic way of finding all methods that miss the @Override
annotation in a project? A script, search technique in any IDE would help
Eclipse shows warnings if you are missing @Override
. You can go to:
Window > Preferences > Java > Compiler > Errors/Warnings > Annotations
You can choose to have warning or even error for "Missing @Override
annotation".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With