Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 5 | 2 | 0.983 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 80 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java |
2 | 9 | 121 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java |
3 | 9 | 132 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java |
4 | 9 | 178 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java |
5 | 9 | 248 | 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); } |
| ||||
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); } |
| ||||
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); } |
| ||||
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); } |
| ||||
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); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b3a6d440]] | forBody |
1 | 2 | [[#b3a6d440]] | whileBody |
1 | 3 | [[#b3a6d440]] | doBody |
1 | 4 | [[#b3a6d440]] | forBody |
1 | 5 | [[#b3a6d440]] | forBody |
2 | 1 | [[#b3a6d2e0]] | ForStatement |
2 | 2 | [[#b3a6d2e0]] | WhileStatement |
2 | 3 | [[#b3a6d2e0]] | DoStatement |
2 | 4 | [[#b3a6d2e0]] | EnhancedForStatement |
2 | 5 | [[#b3a6d2e0]] | ForStatement |