Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 4 | 0.962 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 952 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/QuickAssistProcessor.java |
2 | 8 | 967 | 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; } } |
| ||||
{ 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; } } |
| |||
{ 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#ba382140]] | childPlaceholder1 |
1 | 2 | [[#ba382140]] | childPlaceholder2 |
2 | 1 | [[#b3043fe0]] | thenStatment |
2 | 2 | [[#b3043fe0]] | elseStatment |
3 | 1 | [[#b3043fc0]] | replacingBody1 |
3 | 2 | [[#b3043fc0]] | replacingBody2 |
4 | 1 | [[#ba382060]] | THEN_STATEMENT_PROPERTY |
4 | 2 | [[#ba382060]] | ELSE_STATEMENT_PROPERTY |