Lines 372-378
Link Here
|
372 |
if (isMethodUseDeprecated(this.binding, scope, true)) { |
372 |
if (isMethodUseDeprecated(this.binding, scope, true)) { |
373 |
scope.problemReporter().deprecatedMethod(this.binding, this); |
373 |
scope.problemReporter().deprecatedMethod(this.binding, this); |
374 |
} |
374 |
} |
375 |
checkInvocationArguments(scope, null, allocationType, this.binding, this.arguments, argumentTypes, argsContainCast, this, (this.bits & ASTNode.Unchecked) != 0); |
375 |
if (checkInvocationArguments(scope, null, allocationType, this.binding, this.arguments, argumentTypes, argsContainCast, this)) { |
|
|
376 |
this.bits |= ASTNode.Unchecked; |
377 |
} |
376 |
if (this.typeArguments != null && this.binding.original().typeVariables == Binding.NO_TYPE_VARIABLES) { |
378 |
if (this.typeArguments != null && this.binding.original().typeVariables == Binding.NO_TYPE_VARIABLES) { |
377 |
scope.problemReporter().unnecessaryTypeArgumentsForMethodInvocation(this.binding, this.genericTypeArguments, this.typeArguments); |
379 |
scope.problemReporter().unnecessaryTypeArgumentsForMethodInvocation(this.binding, this.genericTypeArguments, this.typeArguments); |
378 |
} |
380 |
} |
Lines 449-461
Link Here
|
449 |
this.enclosingInstance.computeConversion(scope, targetEnclosing, enclosingInstanceType); |
451 |
this.enclosingInstance.computeConversion(scope, targetEnclosing, enclosingInstanceType); |
450 |
} |
452 |
} |
451 |
if (this.arguments != null) { |
453 |
if (this.arguments != null) { |
452 |
checkInvocationArguments(scope, null, anonymousSuperclass, inheritedBinding, this.arguments, argumentTypes, argsContainCast, this, (this.bits & ASTNode.Unchecked) != 0); |
454 |
if (checkInvocationArguments(scope, null, anonymousSuperclass, inheritedBinding, this.arguments, argumentTypes, argsContainCast, this)) { |
|
|
455 |
this.bits |= ASTNode.Unchecked; |
456 |
} |
453 |
} |
457 |
} |
454 |
if (this.typeArguments != null && inheritedBinding.original().typeVariables == Binding.NO_TYPE_VARIABLES) { |
458 |
if (this.typeArguments != null && inheritedBinding.original().typeVariables == Binding.NO_TYPE_VARIABLES) { |
455 |
scope.problemReporter().unnecessaryTypeArgumentsForMethodInvocation(inheritedBinding, this.genericTypeArguments, this.typeArguments); |
459 |
scope.problemReporter().unnecessaryTypeArgumentsForMethodInvocation(inheritedBinding, this.genericTypeArguments, this.typeArguments); |
456 |
} |
460 |
} |
457 |
// Update the anonymous inner class : superclass, interface |
461 |
// Update the anonymous inner class : superclass, interface |
458 |
this.binding = this.anonymousType.createDefaultConstructorWithBinding(inheritedBinding, (this.bits & ASTNode.Unchecked) != 0 && genericTypeArguments == null); |
462 |
this.binding = this.anonymousType.createDefaultConstructorWithBinding(inheritedBinding, (this.bits & ASTNode.Unchecked) != 0 && this.genericTypeArguments == null); |
459 |
return this.resolvedType; |
463 |
return this.resolvedType; |
460 |
} |
464 |
} |
461 |
|
465 |
|