Lines 7430-7439
Link Here
|
7430 |
// 8.4.6.3 - The access modifier of an overiding method must provide at least as much access as the overriden method. |
7430 |
// 8.4.6.3 - The access modifier of an overiding method must provide at least as much access as the overriden method. |
7431 |
IProblem.MethodReducesVisibility, |
7431 |
IProblem.MethodReducesVisibility, |
7432 |
new String[] {new String(inheritedMethod.declaringClass.readableName())}, |
7432 |
new String[] {new String(inheritedMethod.declaringClass.readableName())}, |
7433 |
new String[] {new String(inheritedMethod.declaringClass.shortReadableName())}, |
7433 |
new String[] {new String(""), new String(inheritedMethod.declaringClass.shortReadableName())}, //$NON-NLS-1$ |
7434 |
currentMethod.sourceStart(), |
7434 |
currentMethod.sourceStart(), |
7435 |
currentMethod.sourceEnd()); |
7435 |
currentMethod.sourceEnd()); |
7436 |
} |
7436 |
} |
|
|
7437 |
public void visibilityConflict(TypeParameter typeParameter, MethodBinding currentMethod, MethodBinding inheritedMethod) { |
7438 |
this.handle( |
7439 |
// Cannot reduce the visibility of the inherited method from %1 |
7440 |
// 8.4.6.3 - The access modifier of an hiding method must provide at least as much access as the hidden method. |
7441 |
// 8.4.6.3 - The access modifier of an overiding method must provide at least as much access as the overriden method. |
7442 |
IProblem.MethodReducesVisibility, |
7443 |
new String[] {new String(inheritedMethod.declaringClass.readableName())}, |
7444 |
new String[] {new String(inheritedMethod.shortReadableName()), new String(inheritedMethod.declaringClass.shortReadableName())}, |
7445 |
typeParameter.sourceStart(), |
7446 |
typeParameter.sourceEnd()); |
7447 |
} |
7437 |
public void wildcardAssignment(TypeBinding variableType, TypeBinding expressionType, ASTNode location) { |
7448 |
public void wildcardAssignment(TypeBinding variableType, TypeBinding expressionType, ASTNode location) { |
7438 |
this.handle( |
7449 |
this.handle( |
7439 |
IProblem.WildcardFieldAssignment, |
7450 |
IProblem.WildcardFieldAssignment, |