Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add warning for missing @Override annotation for interface implementation in Eclipse

In Eclipse 3.4.1 using JDK1.6.0_10 how can I activate a warning on a missing @Override annotation on a method that implements an interface method?

In the Preferences window this option:

Java > Compiler > Errors / Warnings > Annotations > Missing '@Override' annotation

works fine for missing annotations on methods that override a superclass method, but it does nothing for interface methods.

like image 698
Benno Richters Avatar asked Oct 22 '08 09:10

Benno Richters


1 Answers

It is not possible in Eclipse 3.4.1. It is a known issue. See this bug report page for more information.

like image 118
Benno Richters Avatar answered Oct 11 '22 14:10

Benno Richters