| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 20 | 3 | 4 | 0.966 | statement_sequence[7] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 20 | 657 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ParameterizedTypeBinding.java |
| 2 | 20 | 1007 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding.java |
| 3 | 27 | 579 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java |
| ||||
ParameterizedTypeBinding otherParamType = (ParameterizedTypeBinding) otherType;
if (this.type != otherParamType.type)
return false;
if ( !isStatic()) { // static member types do not compare their enclosing
ReferenceBinding enclosing = enclosingType();
if (enclosing != null) {
ReferenceBinding otherEnclosing = otherParamType.enclosingType();
if (otherEnclosing == null) return false;
if ((otherEnclosing.tagBits& TagBits.HasDirectWildcard) == 0) {
if (enclosing != otherEnclosing) return false;
}
else {
if ( !enclosing.isEquivalentTo(otherParamType.enclosingType())) return false;
}
}
}
int length = this.arguments == null ? 0: this.arguments.length;
TypeBinding[] otherArguments = otherParamType.arguments;
int otherLength = otherArguments == null ? 0: otherArguments.length;
if (otherLength != length)
return false;
|
| ||||
ParameterizedTypeBinding otherParamType = (ParameterizedTypeBinding) otherType;
if (this != otherParamType.type)
return false;
if ( !isStatic()) { // static member types do not compare their enclosing
ReferenceBinding enclosing = enclosingType();
if (enclosing != null) {
ReferenceBinding otherEnclosing = otherParamType.enclosingType();
if (otherEnclosing == null) return false;
if ((otherEnclosing.tagBits& TagBits.HasDirectWildcard) == 0) {
if (enclosing != otherEnclosing) return false;
}
else {
if ( !enclosing.isEquivalentTo(otherParamType.enclosingType())) return false;
}
}
}
int length = this.typeVariables == null ? 0: this.typeVariables.length;
TypeBinding[] otherArguments = otherParamType.arguments;
int otherLength = otherArguments == null ? 0: otherArguments.length;
if (otherLength != length)
return false;
|
| ||||
ParameterizedTypeBinding otherParamType = (ParameterizedTypeBinding) otherType;
if (paramType.type != otherParamType.type)
return false;
if ( !paramType.isStatic()) { // static member types do not compare their enclosing
ReferenceBinding enclosing = enclosingType();
if (enclosing != null) {
ReferenceBinding otherEnclosing = otherParamType
.enclosingType();
if (otherEnclosing == null)
return false;
if ((otherEnclosing.tagBits& TagBits.HasDirectWildcard) == 0) {
if (enclosing != otherEnclosing)
return false;
}
else {
if ( !enclosing.isEquivalentTo(otherParamType
.enclosingType()))
return false;
}
}
}
int length = paramType.arguments == null ? 0:
paramType.arguments.length;
TypeBinding[] otherArguments = otherParamType.arguments;
int otherLength = otherArguments == null ? 0:
otherArguments.length;
if (otherLength != length)
return false;
|
| |||
ParameterizedTypeBinding otherParamType = (ParameterizedTypeBinding) otherType;
if ( [[#variableb9ab73e0]]!= otherParamType.type)
return false;
if ( ! [[#variableb0b14b80]]) { // static member types do not compare their enclosing
ReferenceBinding enclosing = enclosingType();
if (enclosing != null) {
ReferenceBinding otherEnclosing = otherParamType.enclosingType();
if (otherEnclosing == null)
return false;
if ((otherEnclosing.tagBits&TagBits.HasDirectWildcard) == 0) {
if (enclosing != otherEnclosing)
return false;
}
else {
if ( !enclosing.isEquivalentTo(otherParamType.enclosingType()))
return false;
}
}
}
int length = [[#variable90bf8f00]]. [[#variableb9ab7360]]== null ? 0: [[#variable90bf8f00]]. [[#variableb9ab7360]].length;
TypeBinding[] otherArguments = otherParamType.arguments;
int otherLength = otherArguments == null ? 0: otherArguments.length;
if (otherLength != length)
return false;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b9ab73e0]] | this.type |
| 1 | 2 | [[#b9ab73e0]] | paramType.type |
| 1 | 3 | [[#b9ab73e0]] | this |
| 2 | 1 | [[#b0b14b80]] | isStatic() |
| 2 | 2 | [[#b0b14b80]] | paramType.isStatic() |
| 2 | 3 | [[#b0b14b80]] | isStatic() |
| 3 | 1 | [[#90bf8f00]] | this |
| 3 | 2 | [[#90bf8f00]] | paramType |
| 3 | 3 | [[#90bf8f00]] | this |
| 4 | 1 | [[#b9ab7360]] | arguments |
| 4 | 2 | [[#b9ab7360]] | arguments |
| 4 | 3 | [[#b9ab7360]] | typeVariables |