hqt*_*hqt 13 java eclipse overriding intellij-idea
我不知道为什么每次实现一个类.当我使用@Override
Eclipse总是注意到错误:
类型B的方法A必须覆盖超类方法
(方法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(){
}
Run Code Online (Sandbox Code Playgroud)