Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 1 | 0.981 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 259 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/UnusedCodeFix.java |
2 | 11 | 202 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/RemoveDeclarationCorrectionProposal.java |
| ||||
{ ArrayList sideEffectNodes = new ArrayList(); initializerNode.accept(new SideEffectFinder(sideEffectNodes)); int nSideEffects = sideEffectNodes.size(); if (nSideEffects == 0) { if (ASTNodes.isControlStatementBody(statementNode.getLocationInParent())) { rewrite.replace(statementNode, rewrite.getAST().newBlock(), group); } else { rewrite.remove(statementNode, group); } } else { // do nothing yet } } |
| ||||
{ ArrayList sideEffectNodes = new ArrayList(); initializerNode.accept(new SideEffectFinder(sideEffectNodes)); int nSideEffects = sideEffectNodes.size(); if (nSideEffects == 0) { if (ASTNodes.isControlStatementBody(statementNode.getLocationInParent())) { rewrite.replace(statementNode, rewrite.getAST().newBlock(), null); } else { rewrite.remove(statementNode, null); } } else { // do nothing yet } } |
| |||
{ ArrayList sideEffectNodes = new ArrayList(); initializerNode.accept(new SideEffectFinder(sideEffectNodes)); int nSideEffects = sideEffectNodes.size(); if (nSideEffects == 0) { if (ASTNodes.isControlStatementBody(statementNode.getLocationInParent())) { rewrite.replace(statementNode, rewrite.getAST().newBlock(), [[#variable63a41340]]); } else { rewrite.remove(statementNode, [[#variable63a41340]]); } } else { // do nothing yet } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#63a41340]] | null |
1 | 2 | [[#63a41340]] | group |