CloneSet446


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9520.983executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1980
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java
29121
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java
39132
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java
49178
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java
59248
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java
Clone Instance
1
Line Count
9
Source Line
80
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java

                        if (fFindControlStatementsWithoutBlock) {
                                ASTNode doBody = node.getBody();
                                if ( !(doBody instanceof Block)) {
                                        fResult.add(new AddBlockOperation(DoStatement.BODY_PROPERTY, doBody, node));
                                }
                        }
                        else   if (fRemoveUnnecessaryBlocks || fRemoveUnnecessaryBlocksOnlyWhenReturnOrThrow) {
                                RemoveBlockOperation op = createRemoveBlockOperation(node, DoStatement.BODY_PROPERTY, fRemoveUnnecessaryBlocksOnlyWhenReturnOrThrow);
                                if (op != null)
                                        fResult.add(op);
                               }


Clone Instance
2
Line Count
9
Source Line
121
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java

                                               if (fFindControlStatementsWithoutBlock) {
                                                ASTNode forBody = node.getBody();
                                                if ( !(forBody instanceof Block)) {
                                                        fResult.add(new AddBlockOperation(ForStatement.BODY_PROPERTY, forBody, node));
                                                }
                                               }
                                               else
                                               if (fRemoveUnnecessaryBlocks || fRemoveUnnecessaryBlocksOnlyWhenReturnOrThrow) {
                                                RemoveBlockOperation op = createRemoveBlockOperation(node, ForStatement.BODY_PROPERTY, fRemoveUnnecessaryBlocksOnlyWhenReturnOrThrow);
                                                if (op != null)
                                                        fResult.add(op);
                                               }


Clone Instance
3
Line Count
9
Source Line
132
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java

                               if (fFindControlStatementsWithoutBlock) {
                                ASTNode forBody = node.getBody();
                                if ( !(forBody instanceof Block)) {
                                        fResult.add(new AddBlockOperation(ForStatement.BODY_PROPERTY, forBody, node));
                                }
                               }
                               else
                               if (fRemoveUnnecessaryBlocks || fRemoveUnnecessaryBlocksOnlyWhenReturnOrThrow) {
                                RemoveBlockOperation op = createRemoveBlockOperation(node, ForStatement.BODY_PROPERTY, fRemoveUnnecessaryBlocksOnlyWhenReturnOrThrow);
                                if (op != null)
                                        fResult.add(op);
                               }


Clone Instance
4
Line Count
9
Source Line
178
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java

                        if (fFindControlStatementsWithoutBlock) {
                                ASTNode forBody = node.getBody();
                                if ( !(forBody instanceof Block)) {
                                        fResult.add(new AddBlockOperation(EnhancedForStatement.BODY_PROPERTY, forBody, node));
                                }
                        }
                        else   if (fRemoveUnnecessaryBlocks || fRemoveUnnecessaryBlocksOnlyWhenReturnOrThrow) {
                                RemoveBlockOperation op = createRemoveBlockOperation(node, EnhancedForStatement.BODY_PROPERTY, fRemoveUnnecessaryBlocksOnlyWhenReturnOrThrow);
                                if (op != null)
                                        fResult.add(op);
                               }


Clone Instance
5
Line Count
9
Source Line
248
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java

                        if (fFindControlStatementsWithoutBlock) {
                                ASTNode whileBody = node.getBody();
                                if ( !(whileBody instanceof Block)) {
                                        fResult.add(new AddBlockOperation(WhileStatement.BODY_PROPERTY, whileBody, node));
                                }
                        }
                        else   if (fRemoveUnnecessaryBlocks || fRemoveUnnecessaryBlocksOnlyWhenReturnOrThrow) {
                                RemoveBlockOperation op = createRemoveBlockOperation(node, WhileStatement.BODY_PROPERTY, fRemoveUnnecessaryBlocksOnlyWhenReturnOrThrow);
                                if (op != null)
                                        fResult.add(op);
                               }


Clone AbstractionParameter Count: 2Parameter Bindings

if (fFindControlStatementsWithoutBlock) {
  ASTNode  [[#variableb3a6d440]]= node.getBody();
  if ( !( [[#variableb3a6d440]]instanceof Block)) {
    fResult.add(new AddBlockOperation( [[#variableb3a6d2e0]].BODY_PROPERTY,  [[#variableb3a6d440]], node));
  }
}
else
  if (fRemoveUnnecessaryBlocks || fRemoveUnnecessaryBlocksOnlyWhenReturnOrThrow) {
    RemoveBlockOperation op = createRemoveBlockOperation(node,  [[#variableb3a6d2e0]].BODY_PROPERTY, fRemoveUnnecessaryBlocksOnlyWhenReturnOrThrow);
    if (op != null)
      fResult.add(op);
  }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b3a6d440]]
forBody 
12[[#b3a6d440]]
whileBody 
13[[#b3a6d440]]
doBody 
14[[#b3a6d440]]
forBody 
15[[#b3a6d440]]
forBody 
21[[#b3a6d2e0]]
ForStatement 
22[[#b3a6d2e0]]
WhileStatement 
23[[#b3a6d2e0]]
DoStatement 
24[[#b3a6d2e0]]
EnhancedForStatement 
25[[#b3a6d2e0]]
ForStatement