CloneSet2666


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5260.952statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15369
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/SourceProvider.java
25384
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/SourceProvider.java
Clone Instance
1
Line Count
5
Source Line
369
Source File
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);
                        }


Clone Instance
2
Line Count
5
Source Line
384
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/SourceProvider.java

                                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);
                                }


Clone AbstractionParameter Count: 6Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#99b3d060]]
parameter 
12[[#99b3d060]]
nd 
21[[#99b3cfe0]]
iter 
22[[#99b3cfe0]]
refs 
31[[#99b3cf00]]
ASTNode 
32[[#99b3cf00]]
SimpleName 
41[[#99b3cfc0]]
expression 
42[[#99b3cfc0]]
newName 
51[[#9eef36a0]]
element 
52[[#9eef36a0]]
ASTNode 
61[[#99b3cf60]]
.getNodeType() 
62[[#99b3cf60]]
.METHOD_INVOCATION