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