CloneSet6648


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4220.973statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16221
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java
24243
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java
Clone Instance
1
Line Count
6
Source Line
221
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java

                        // x = 1; -> int x = 1;
                        Assignment assignment = (Assignment) node.getParent();

                        // trick to avoid comment removal around the statement: keep the expression statement
                        // and replace the assignment with an VariableDeclarationExpression
                        VariableDeclarationFragment newDeclFrag = ast.newVariableDeclarationFragment();
                        VariableDeclarationExpression newDecl = ast.newVariableDeclarationExpression(newDeclFrag);


Clone Instance
2
Line Count
4
Source Line
243
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java

                        //      for (x = 1;;) ->for (int x = 1;;)
                        Assignment assignment = (Assignment) node.getParent();

                        VariableDeclarationFragment frag = ast.newVariableDeclarationFragment();
                        VariableDeclarationExpression expression = ast.newVariableDeclarationExpression(frag);


Clone AbstractionParameter Count: 2Parameter Bindings

//      for (x = 1;;) ->for (int x = 1;;)
// x = 1; -> int x = 1;
Assignment assignment = (Assignment) node.getParent();
// trick to avoid comment removal around the statement: keep the expression statement
// and replace the assignment with an VariableDeclarationExpression
VariableDeclarationFragment  [[#variable63828ce0]]= ast.newVariableDeclarationFragment();
VariableDeclarationExpression  [[#variable63828cc0]]= ast.newVariableDeclarationExpression( [[#variable63828ce0]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#63828ce0]]
frag 
12[[#63828ce0]]
newDeclFrag 
21[[#63828cc0]]
expression 
22[[#63828cc0]]
newDecl