<分区>
不知道为什么每次实现一个类。当我使用 @Override
时,Eclipse 总是注意到错误:
the method A of type B must override a superclass method
(方法 A 是我覆盖的方法,B 是我使用的当前类)
并且Eclipse推荐删除@Override
但使用相同的代码,我在 Idea 上工作,没有发现错误。
谁能告诉我原因
谢谢:)
@Edit:哦,我没有发布确切的代码,因为当我实现某事时,它发生在所有人身上: 例如:
public class helloworld implements Runnable {
@Override //this line no-error with Idea and error with eclipse:the method run of type helloworld must be override a super class
public void run(){
}