| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 23 | 2 | 1 | 0.977 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 23 | 124 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeReference.java |
| 2 | 23 | 148 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeReference.java |
| ||||
public TypeBinding resolveType(BlockScope scope, boolean checkBounds) {
// handle the error here
this.constant = Constant.NotAConstant;
if (this.resolvedType != null) // is a shared type reference which was already resolved
return this.resolvedType.isValidBinding() ? this.resolvedType: null; // already reported error
TypeBinding type = this.resolvedType = getTypeBinding(scope);
if (this.resolvedType == null)
return null; // detected cycle while resolving hierarchy
if ( !this.resolvedType.isValidBinding()) {
reportInvalidType(scope);
return null;
}
if (isTypeUseDeprecated(type, scope))
reportDeprecatedType(scope);
type = scope.environment().convertToRawType(type);
if (type.leafComponentType().isRawType() &&
(this.bits& IgnoreRawTypeCheck) == 0 &&
scope.compilerOptions().getSeverity(CompilerOptions.RawTypeReference) != ProblemSeverities.Ignore) {
scope.problemReporter().rawTypeReference(this, type);
}
return this.resolvedType = type;
}
|
| ||||
public TypeBinding resolveType(ClassScope scope) {
// handle the error here
this.constant = Constant.NotAConstant;
if (this.resolvedType != null) // is a shared type reference which was already resolved
return this.resolvedType.isValidBinding() ? this.resolvedType: null; // already reported error
TypeBinding type = this.resolvedType = getTypeBinding(scope);
if (this.resolvedType == null)
return null; // detected cycle while resolving hierarchy
if ( !this.resolvedType.isValidBinding()) {
reportInvalidType(scope);
return null;
}
if (isTypeUseDeprecated(type, scope))
reportDeprecatedType(scope);
type = scope.environment().convertToRawType(type);
if (type.leafComponentType().isRawType() &&
(this.bits& IgnoreRawTypeCheck) == 0 &&
scope.compilerOptions().getSeverity(CompilerOptions.RawTypeReference) != ProblemSeverities.Ignore) {
scope.problemReporter().rawTypeReference(this, type);
}
return this.resolvedType = type;
}
|
| |||
public TypeBinding resolveType( [[#variable54567ae0]]) {
// handle the error here
this.constant = Constant.NotAConstant;
if (this.resolvedType != null) // is a shared type reference which was already resolved
return this.resolvedType.isValidBinding() ? this.resolvedType: null; // already reported error
TypeBinding type = this.resolvedType = getTypeBinding(scope);
if (this.resolvedType == null)
return null; // detected cycle while resolving hierarchy
if ( !this.resolvedType.isValidBinding()) {
reportInvalidType(scope);
return null;
}
if (isTypeUseDeprecated(type, scope))
reportDeprecatedType(scope);
type = scope.environment().convertToRawType(type);
if (type.leafComponentType().isRawType() && (this.bits&IgnoreRawTypeCheck) == 0 && scope.compilerOptions().getSeverity(CompilerOptions.RawTypeReference) != ProblemSeverities.Ignore) {
scope.problemReporter().rawTypeReference(this, type);
}
return this.resolvedType = type;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#54567ae0]] | BlockScope scope, boolean checkBounds |
| 1 | 2 | [[#54567ae0]] | ClassScope scope |