CloneSet5104


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3330.968statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13516
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/PromoteTempToFieldRefactoring.java
231878
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java
332249
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java
Clone Instance
1
Line Count
3
Source Line
516
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/PromoteTempToFieldRefactoring.java

                TempOccurrenceAnalyzer analyzer = new TempOccurrenceAnalyzer(fTempDeclarationNode, false);
                analyzer.perform();
        SimpleName[] tempRefs = analyzer.getReferenceNodes(); // no javadocs (refactoring not for parameters)


Clone Instance
2
Line Count
3
Source Line
1878
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java

                        TempOccurrenceAnalyzer analyzer = new TempOccurrenceAnalyzer(param, false);
                        analyzer.perform();
                        SimpleName[] paramOccurrences = analyzer.getReferenceAndDeclarationNodes(); // @param tags are updated in changeJavaDocTags()


Clone Instance
3
Line Count
3
Source Line
2249
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java

                                TempOccurrenceAnalyzer analyzer = new TempOccurrenceAnalyzer(paramDecl, false);
                                analyzer.perform();
                                SimpleName[] paramRefs = analyzer.getReferenceNodes();


Clone AbstractionParameter Count: 3Parameter Bindings

TempOccurrenceAnalyzer analyzer = new TempOccurrenceAnalyzer( [[#variablea428abc0]], false);
analyzer.perform();
SimpleName[]  [[#variablea428ab80]]= analyzer. [[#variablea428ac00]](); // @param tags are updated in changeJavaDocTags() // no javadocs (refactoring not for parameters)
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a428abc0]]
param 
12[[#a428abc0]]
paramDecl 
13[[#a428abc0]]
fTempDeclarationNode 
21[[#a428ab80]]
paramOccurrences 
22[[#a428ab80]]
paramRefs 
23[[#a428ab80]]
tempRefs 
31[[#a428ac00]]
getReferenceAndDeclarationNodes 
32[[#a428ac00]]
getReferenceNodes 
33[[#a428ac00]]
getReferenceNodes