Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 3 | 0.966 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 295 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java |
2 | 5 | 360 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java |
| ||||
{ // we merge the current node MultiFieldDeclaration multiFieldDeclaration = (MultiFieldDeclaration) previousMergedNode; int length = multiFieldDeclaration.declarations.length; System.arraycopy(multiFieldDeclaration.declarations, 0, multiFieldDeclaration.declarations = new FieldDeclaration[length + 1], 0, length); multiFieldDeclaration.declarations[length] = currentField; } |
| ||||
{ MultiFieldDeclaration multiField = (MultiFieldDeclaration) previousMember; int length = multiField.declarations.length; System.arraycopy(multiField.declarations, 0, multiField.declarations = new FieldDeclaration[length + 1], 0, length); multiField.declarations[length] = field; } |
| |||
{ // we merge the current node MultiFieldDeclaration [[#variableb5229f00]]= (MultiFieldDeclaration) [[#variableb5228ae0]]; int length = [[#variableb5229f00]].declarations.length; System.arraycopy( [[#variableb5229f00]].declarations, 0, [[#variableb5229f00]].declarations = new FieldDeclaration[length + 1], 0, length); [[#variableb5229f00]].declarations[length] = [[#variableb5229f40]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b5229f00]] | multiField |
1 | 2 | [[#b5229f00]] | multiFieldDeclaration |
2 | 1 | [[#b5228ae0]] | previousMember |
2 | 2 | [[#b5228ae0]] | previousMergedNode |
3 | 1 | [[#b5229f40]] | field |
3 | 2 | [[#b5229f40]] | currentField |