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

posted @ 2015-09-28 17:03  星辰之力  阅读(3193)  评论(0编辑  收藏  举报