开发者

Eclipse, remove override error

开发者 https://www.devze.com 2022-12-16 13:51 出处:网络
I开发者_如何学C have overriden a controller class in a java projects in order to add an interceptor,

I开发者_如何学C have overriden a controller class in a java projects in order to add an interceptor, I would like to know if there is anyway I can remove the "error" showing up in Eclipse:

The type CRUD is already defined

I don't think the code will help much but there you go:

package controllers;

    public abstract class CRUD extends Controller {


From Window -> Preferences -> Java -> Compiler -> Errors/Warnings, find your case and choose "Ignore" from the drop down menu


The error was removed after a rebuild of the eclipse project.


From top of my head:

Preferences -> Java -> Compiler -> Errors/Warnings -> Name shadowing and conflicts -> alter the settings there per your likes.

The same can be done for a particular project only, by enabling project specific compiler settings in project properties (Java Compiler section).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号