CloneSet3011


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7240.962executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17952
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/QuickAssistProcessor.java
28967
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/QuickAssistProcessor.java
Clone Instance
1
Line Count
7
Source Line
952
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/QuickAssistProcessor.java

                                                                      {
                                        ASTNode childPlaceholder1 = rewrite.createMoveTarget(thenStatment);
                                        Block replacingBody1 = ast.newBlock();
                                        replacingBody1.statements().add(childPlaceholder1);
                                        rewrite.set(ifStatement, IfStatement.THEN_STATEMENT_PROPERTY, replacingBody1, null);
                                        if (thenStatment != child) {
                                                missingBlockFound = true;
                                        }
                                                                      }


Clone Instance
2
Line Count
8
Source Line
967
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/QuickAssistProcessor.java

                                                                                      {
                                ASTNode childPlaceholder2 = rewrite.createMoveTarget(elseStatment);

                                Block replacingBody2 = ast.newBlock();
                                replacingBody2.statements().add(childPlaceholder2);
                                rewrite.set(ifStatement, IfStatement.ELSE_STATEMENT_PROPERTY, replacingBody2, null);
                                if (elseStatment != child) {
                                        missingBlockFound = true;
                                }
                                                                                      }


Clone AbstractionParameter Count: 4Parameter Bindings

{
  ASTNode  [[#variableba382140]]= rewrite.createMoveTarget( [[#variableb3043fe0]]);
  Block  [[#variableb3043fc0]]= ast.newBlock();
   [[#variableb3043fc0]].statements().add( [[#variableba382140]]);
  rewrite.set(ifStatement, IfStatement. [[#variableba382060]],  [[#variableb3043fc0]], null);
  if ( [[#variableb3043fe0]]!= child) {
    missingBlockFound = true;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#ba382140]]
childPlaceholder1 
12[[#ba382140]]
childPlaceholder2 
21[[#b3043fe0]]
thenStatment 
22[[#b3043fe0]]
elseStatment 
31[[#b3043fc0]]
replacingBody1 
32[[#b3043fc0]]
replacingBody2 
41[[#ba382060]]
THEN_STATEMENT_PROPERTY 
42[[#ba382060]]
ELSE_STATEMENT_PROPERTY