首页 > 技术文章 > Remove @Override annotation错误提示

google4y 2013-11-14 10:44 原文

因为对于JDK5.0/1.5版本来说,@Override annotation只能用与对超类的方法重写上,

而不能用在对接口方法的实现方法上。

解决的方法是把JDK改为1.6的或动手把注释@Override去掉。

You probably need to set the compiler compliance level in eclipse. This can be found in Window->Preferences->Java->Compiler

推荐阅读