Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 2 | 0.981 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 116 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AssignToVariableAssistProposal.java |
2 | 4 | 232 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AssignToVariableAssistProposal.java |
| ||||
// trick for bug 43248: use an VariableDeclarationExpression and keep the ExpressionStatement VariableDeclarationExpression newDecl = ast.newVariableDeclarationExpression(newDeclFrag); Type type = evaluateType(ast); newDecl.setType(type); |
| ||||
FieldDeclaration newDecl = ast.newFieldDeclaration(newDeclFrag); Type type = evaluateType(ast); newDecl.setType(type); |
| |||
[[#variable54bf12a0]] newDecl = ast. [[#variable54bf1340]](newDeclFrag); Type type = evaluateType(ast); newDecl.setType(type); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#54bf12a0]] | // trick for bug 43248: use an VariableDeclarationExpression and keep the ExpressionStatement VariableDeclarationExpression |
1 | 2 | [[#54bf12a0]] | FieldDeclaration |
2 | 1 | [[#54bf1340]] | newVariableDeclarationExpression |
2 | 2 | [[#54bf1340]] | newFieldDeclaration |