Multiple markers at this line @Override的解决方法


Multiple markers at this line

- implements java.awt.event.ActionListener.actionPerformed

- The method actionPerformed(ActionEvent) of type DimmingGlassPane.Animator must override a 

superclass method

- Javadoc: Missing comment for private declaration

原因:JDK1.5不支持这种写法。实现接口方法需要重写抽象方法。

解决方法:将Compiler compliance level修改为1.6即可.

此处可能需要在两个地方修改
(1) Eclipse的Window-Preferences->Java->Compiler
(2)Eclipse的Project->Properties->Java Compiler


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM