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

后端 未结 4 978
傲寒
傲寒 2021-02-04 12:22

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 P

4条回答
  •  無奈伤痛
    2021-02-04 12:41

    Maybe I'm missing something but interface methods are already required to be implemented by implementation classes.

    The compiler will generate an error if the interface is not completely implemented.

提交回复
热议问题