CloneSet3104


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5230.966executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16295
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
25360
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
Clone Instance
1
Line Count
6
Source Line
295
Source File
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;
                                                                                                 }


Clone Instance
2
Line Count
5
Source Line
360
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java

                                                                                                     {
                                                        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;
                                                                                                     }


Clone AbstractionParameter Count: 3Parameter Bindings

{
  // 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b5229f00]]
multiField 
12[[#b5229f00]]
multiFieldDeclaration 
21[[#b5228ae0]]
previousMember 
22[[#b5228ae0]]
previousMergedNode 
31[[#b5229f40]]
field 
32[[#b5229f40]]
currentField