Eclipse, remove override error
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).
精彩评论