Lines 270-276
Link Here
|
270 |
void checkInheritedMethods(MethodBinding inheritedMethod, MethodBinding otherInheritedMethod) { |
270 |
void checkInheritedMethods(MethodBinding inheritedMethod, MethodBinding otherInheritedMethod) { |
271 |
// sent from checkMethods() to compare 2 inherited methods that are not 'equal' |
271 |
// sent from checkMethods() to compare 2 inherited methods that are not 'equal' |
272 |
if (inheritedMethod.declaringClass.erasure() == otherInheritedMethod.declaringClass.erasure()) { |
272 |
if (inheritedMethod.declaringClass.erasure() == otherInheritedMethod.declaringClass.erasure()) { |
273 |
if (inheritedMethod.areParameterErasuresEqual(otherInheritedMethod)) { |
273 |
boolean areDuplicates = inheritedMethod.hasSubstitutedParameters() && otherInheritedMethod.hasSubstitutedParameters() |
|
|
274 |
? inheritedMethod.areParametersEqual(otherInheritedMethod) |
275 |
: inheritedMethod.areParameterErasuresEqual(otherInheritedMethod); |
276 |
if (areDuplicates) { |
274 |
problemReporter().duplicateInheritedMethods(this.type, inheritedMethod, otherInheritedMethod); |
277 |
problemReporter().duplicateInheritedMethods(this.type, inheritedMethod, otherInheritedMethod); |
275 |
return; |
278 |
return; |
276 |
} |
279 |
} |