Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
39 | 2 | 0 | 1.000 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 39 | 72 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/UnusedCodeFix.java |
2 | 39 | 33 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/RemoveDeclarationCorrectionProposal.java |
| ||||
private static class SideEffectFinder extends ASTVisitor { private ArrayList fSideEffectNodes; public SideEffectFinder(ArrayList res) { fSideEffectNodes = res; } public boolean visit(Assignment node) { fSideEffectNodes.add(node); return false; } public boolean visit(PostfixExpression node) { fSideEffectNodes.add(node); return false; } public boolean visit(PrefixExpression node) { Object operator = node.getOperator(); if (operator == PrefixExpression.Operator.INCREMENT || operator == PrefixExpression.Operator.DECREMENT) { fSideEffectNodes.add(node); } return false; } public boolean visit(MethodInvocation node) { fSideEffectNodes.add(node); return false; } public boolean visit(ClassInstanceCreation node) { fSideEffectNodes.add(node); return false; } public boolean visit(SuperMethodInvocation node) { fSideEffectNodes.add(node); return false; } } |
| ||||
private static class SideEffectFinder extends ASTVisitor { private ArrayList fSideEffectNodes; public SideEffectFinder(ArrayList res) { fSideEffectNodes = res; } public boolean visit(Assignment node) { fSideEffectNodes.add(node); return false; } public boolean visit(PostfixExpression node) { fSideEffectNodes.add(node); return false; } public boolean visit(PrefixExpression node) { Object operator = node.getOperator(); if (operator == PrefixExpression.Operator.INCREMENT || operator == PrefixExpression.Operator.DECREMENT) { fSideEffectNodes.add(node); } return false; } public boolean visit(MethodInvocation node) { fSideEffectNodes.add(node); return false; } public boolean visit(ClassInstanceCreation node) { fSideEffectNodes.add(node); return false; } public boolean visit(SuperMethodInvocation node) { fSideEffectNodes.add(node); return false; } } |
| |||
private static class SideEffectFinder extends ASTVisitor { private ArrayList fSideEffectNodes; public SideEffectFinder(ArrayList res) { fSideEffectNodes = res; } public boolean visit(Assignment node) { fSideEffectNodes.add(node); return false; } public boolean visit(PostfixExpression node) { fSideEffectNodes.add(node); return false; } public boolean visit(PrefixExpression node) { Object operator = node.getOperator(); if (operator == PrefixExpression.Operator.INCREMENT || operator == PrefixExpression.Operator.DECREMENT) { fSideEffectNodes.add(node); } return false; } public boolean visit(MethodInvocation node) { fSideEffectNodes.add(node); return false; } public boolean visit(ClassInstanceCreation node) { fSideEffectNodes.add(node); return false; } public boolean visit(SuperMethodInvocation node) { fSideEffectNodes.add(node); return false; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |