| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 4 | 3 | 4 | 0.961 | statement_sequence_member |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 4 | 47 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/ASTNodeFinder.java |
| 2 | 4 | 140 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/ASTNodeFinder.java |
| 3 | 4 | 153 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/ASTNodeFinder.java |
| ||||
for (int i = 0, length = fields.length; i < length; i++) {
FieldDeclaration field = fields[i];
if (CharOperation.equals(fieldName, field.name)) {
return field;
}
}
|
| ||||
for (int i = 0, length = types.length; i < length; i++) {
TypeDeclaration type = types[i];
if (CharOperation.equals(typeName, type.name)) {
return type;
}
}
|
| ||||
for (int i = 0, length = types.length; i < length; i++) {
TypeDeclaration type = types[i];
if (CharOperation.equals(typeName, type.name)) {
return type;
}
}
|
| |||
for (int i = 0, length = [[#variableb3d20c60]].length; i < length; i++) {
[[#variableb3d20c00]] [[#variableb3d20ba0]]= [[#variableb3d20c60]][i];
if (CharOperation.equals( [[#variableb3d208a0]], [[#variableb3d20ba0]].name)) {
return [[#variableb3d20ba0]];
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b3d20c60]] | types |
| 1 | 2 | [[#b3d20c60]] | fields |
| 1 | 3 | [[#b3d20c60]] | types |
| 2 | 1 | [[#b3d20c00]] | TypeDeclaration |
| 2 | 2 | [[#b3d20c00]] | FieldDeclaration |
| 2 | 3 | [[#b3d20c00]] | TypeDeclaration |
| 3 | 1 | [[#b3d20ba0]] | type |
| 3 | 2 | [[#b3d20ba0]] | field |
| 3 | 3 | [[#b3d20ba0]] | type |
| 4 | 1 | [[#b3d208a0]] | typeName |
| 4 | 2 | [[#b3d208a0]] | fieldName |
| 4 | 3 | [[#b3d208a0]] | typeName |