CloneSet1038


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18230.960statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118290
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ExpressionsFix.java
218324
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/UnusedCodeFix.java
Clone Instance
1
Line Count
18
Source Line
290
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ExpressionsFix.java

                        while (fExpressions.size() > 0) {
                                ParenthesizedExpression parenthesizedExpression = (ParenthesizedExpression) fExpressions.iterator().next();
                                fExpressions.remove(parenthesizedExpression);
                                ParenthesizedExpression down = parenthesizedExpression;
                                while (fExpressions.contains(down.getExpression())) {
                                        down = (ParenthesizedExpression) down.getExpression();
                                        fExpressions.remove(down);
                                }

                                ASTNode move = rewrite.createMoveTarget(down.getExpression());

                                ParenthesizedExpression top = parenthesizedExpression;
                                while (fExpressions.contains(top.getParent())) {
                                        top = (ParenthesizedExpression) top.getParent();
                                        fExpressions.remove(top);
                                }

                                rewrite.replace(top, move, group);
                        }


Clone Instance
2
Line Count
18
Source Line
324
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/UnusedCodeFix.java

                        while (fUnnecessaryCasts.size() > 0) {
                                CastExpression castExpression = (CastExpression) fUnnecessaryCasts.iterator().next();
                                fUnnecessaryCasts.remove(castExpression);
                                CastExpression down = castExpression;
                                while (fUnnecessaryCasts.contains(down.getExpression())) {
                                        down = (CastExpression) down.getExpression();
                                        fUnnecessaryCasts.remove(down);
                                }

                                ASTNode move = rewrite.createMoveTarget(down.getExpression());

                                CastExpression top = castExpression;
                                while (fUnnecessaryCasts.contains(top.getParent())) {
                                        top = (CastExpression) top.getParent();
                                        fUnnecessaryCasts.remove(top);
                                }

                                rewrite.replace(top, move, group);
                        }


Clone AbstractionParameter Count: 3Parameter Bindings

while ( [[#variablebaf26640]].size() > 0) {
   [[#variablebaf265c0]]  [[#variablebaf262a0]]= ( [[#variablebaf265c0]])  [[#variablebaf26640]].iterator().next();
   [[#variablebaf26640]].remove( [[#variablebaf262a0]]);
   [[#variablebaf265c0]] down = [[#variablebaf262a0]];
  while ( [[#variablebaf26640]].contains(down.getExpression())) {
    down = ( [[#variablebaf265c0]]) down.getExpression();
     [[#variablebaf26640]].remove(down);
  }
  ASTNode move = rewrite.createMoveTarget(down.getExpression());
   [[#variablebaf265c0]] top = [[#variablebaf262a0]];
  while ( [[#variablebaf26640]].contains(top.getParent())) {
    top = ( [[#variablebaf265c0]]) top.getParent();
     [[#variablebaf26640]].remove(top);
  }
  rewrite.replace(top, move, group);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#baf26640]]
fUnnecessaryCasts 
12[[#baf26640]]
fExpressions 
21[[#baf265c0]]
CastExpression 
22[[#baf265c0]]
ParenthesizedExpression 
31[[#baf262a0]]
castExpression 
32[[#baf262a0]]
parenthesizedExpression