Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 6 | 0.952 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 369 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/SourceProvider.java |
2 | 5 | 384 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/SourceProvider.java |
| ||||
List references = parameter.references(); for (Iterator iter = references.iterator(); iter.hasNext();) { ASTNode element = (ASTNode) iter.next(); ASTNode newNode = rewriter.createStringPlaceholder(expression, element.getNodeType()); rewriter.replace(element, newNode, null); } |
| ||||
List references = nd.references(); for (Iterator refs = references.iterator(); refs.hasNext();) { SimpleName element = (SimpleName) refs.next(); ASTNode newNode = rewriter.createStringPlaceholder(newName, ASTNode.METHOD_INVOCATION); rewriter.replace(element, newNode, null); } |
| |||
List references = [[#variable99b3d060]].references(); for (Iterator [[#variable99b3cfe0]]= references.iterator(); [[#variable99b3cfe0]].hasNext();) { [[#variable99b3cf00]] element = ( [[#variable99b3cf00]]) [[#variable99b3cfe0]].next(); ASTNode newNode = rewriter.createStringPlaceholder( [[#variable99b3cfc0]], [[#variable9eef36a0]] [[#variable99b3cf60]]); rewriter.replace(element, newNode, null); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#99b3d060]] | parameter |
1 | 2 | [[#99b3d060]] | nd |
2 | 1 | [[#99b3cfe0]] | iter |
2 | 2 | [[#99b3cfe0]] | refs |
3 | 1 | [[#99b3cf00]] | ASTNode |
3 | 2 | [[#99b3cf00]] | SimpleName |
4 | 1 | [[#99b3cfc0]] | expression |
4 | 2 | [[#99b3cfc0]] | newName |
5 | 1 | [[#9eef36a0]] | element |
5 | 2 | [[#9eef36a0]] | ASTNode |
6 | 1 | [[#99b3cf60]] | .getNodeType() |
6 | 2 | [[#99b3cf60]] | .METHOD_INVOCATION |