| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 7 | 3 | 3 | 0.957 | statement_sequence_member |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 12 | 145 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java |
| 2 | 12 | 333 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java |
| 3 | 7 | 389 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java |
| ||||
//adding the constructor in the methods list
if (this.missingAbstractMethods == null) {
this.missingAbstractMethods = new MethodDeclaration[] {
methodDeclaration
};
}
else {
MethodDeclaration[] newMethods;
System.arraycopy(
this.missingAbstractMethods,
0,
newMethods = new MethodDeclaration[this.missingAbstractMethods.length + 1],
1,
this.missingAbstractMethods.length);
newMethods[0] = methodDeclaration;
this.missingAbstractMethods = newMethods;
}
|
| ||||
if (this.methods == null) {
this.methods = new AbstractMethodDeclaration[] {
constructor
};
}
else {
AbstractMethodDeclaration[] newMethods;
System.arraycopy(
this.methods,
0,
newMethods = new AbstractMethodDeclaration[this.methods.length + 1],
1,
this.methods.length);
newMethods[0] = constructor;
this.methods = newMethods;
}
|
| ||||
//adding the constructor in the methods list
if (this.methods == null) {
this.methods = new AbstractMethodDeclaration[] {
constructor
};
}
else {
AbstractMethodDeclaration[] newMethods;
System.arraycopy(this.methods, 0, newMethods = new AbstractMethodDeclaration[this.methods.length + 1], 1, this.methods.length);
newMethods[0] = constructor;
this.methods = newMethods;
}
|
| |||
//adding the constructor in the methods list
if (this. [[#variable9c94d4c0]]== null) {
this. [[#variable9c94d4c0]]= new [[#variable9c94d560]][] {
[[#variable9c94d540]]
};
}
else {
[[#variable9c94d560]][] newMethods;
System.arraycopy(this. [[#variable9c94d4c0]], 0, newMethods = new [[#variable9c94d560]][this. [[#variable9c94d4c0]].length + 1], 1, this. [[#variable9c94d4c0]].length);
newMethods[0] = [[#variable9c94d540]];
this. [[#variable9c94d4c0]]= newMethods;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#9c94d4c0]] | methods |
| 1 | 2 | [[#9c94d4c0]] | missingAbstractMethods |
| 1 | 3 | [[#9c94d4c0]] | methods |
| 2 | 1 | [[#9c94d560]] | AbstractMethodDeclaration |
| 2 | 2 | [[#9c94d560]] | MethodDeclaration |
| 2 | 3 | [[#9c94d560]] | AbstractMethodDeclaration |
| 3 | 1 | [[#9c94d540]] | constructor |
| 3 | 2 | [[#9c94d540]] | methodDeclaration |
| 3 | 3 | [[#9c94d540]] | constructor |