Example usage for org.eclipse.jdt.core.compiler IProblem MethodNameClash

List of usage examples for org.eclipse.jdt.core.compiler IProblem MethodNameClash

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.compiler IProblem MethodNameClash.

Prototype

int MethodNameClash

To view the source code for org.eclipse.jdt.core.compiler IProblem MethodNameClash.

Click Source Link

Usage

From source file:org.codehaus.jdt.groovy.internal.compiler.ast.GroovyClassScope.java

License:Open Source License

@Override
public boolean shouldReport(int problem) {
    if (problem == IProblem.SuperclassMustBeAClass) {
        return false;
    }/*w  w w . j  a va 2  s  .  c  o  m*/
    if (problem == IProblem.IncompatibleReturnType) {
        return false;
    }
    if (problem == IProblem.AbstractMethodMustBeImplemented) {
        return false;
    }
    if (problem == IProblem.MethodNameClash) {
        return false;
    }
    if (problem == IProblem.VarargsConflict) {
        return false;
    }
    return true;
}