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

Benno Richters picture Benno Richters · Oct 22, 2008 · Viewed 14.4k times · Source

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.

Answer

Benno Richters picture Benno Richters · Oct 22, 2008

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