CloneSet1902


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5340.953statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15793
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractConstantRefactoring.java
25327
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractTempRefactoring.java
35769
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/RenameTypeWizardSimilarElementsPage.java
Clone Instance
1
Line Count
5
Source Line
793
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractConstantRefactoring.java

                for (int i = 0; i < allMatches.length; i++) {
                        if (canReplace(allMatches[i]))
                                result.add(allMatches[i]);
                }
                return (IASTFragment[]) result.toArray(new IASTFragment[result.size()]);


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

                for (int i = 0; i < allMatches.length; i++) {
                        if (canReplace(allMatches[i]))
                                result.add(allMatches[i]);
                }
                return (IASTFragment[]) result.toArray(new IASTFragment[result.size()]);


Clone Instance
3
Line Count
5
Source Line
769
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/RenameTypeWizardSimilarElementsPage.java

                for (int i = 0; i < checked.length; i++) {
                        if (isSimilarElement(checked[i]))
                                elements.add(checked[i]);
                }
                return (IJavaElement[]) elements.toArray(new IJavaElement[elements.size()]);


Clone AbstractionParameter Count: 4Parameter Bindings

for (int i = 0; i <  [[#variablebc647d60]].length; i++) {
  if ( [[#variablebc646c40]]( [[#variablebc647d60]][i]))
     [[#variablebc647c80]].add( [[#variablebc647d60]][i]);
}
return ( [[#variablebc647c20]][])  [[#variablebc647c80]].toArray(new [[#variablebc647c20]][ [[#variablebc647c80]].size()]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bc647d60]]
allMatches 
12[[#bc647d60]]
checked 
13[[#bc647d60]]
allMatches 
21[[#bc646c40]]
canReplace 
22[[#bc646c40]]
isSimilarElement 
23[[#bc646c40]]
canReplace 
31[[#bc647c80]]
result 
32[[#bc647c80]]
elements 
33[[#bc647c80]]
result 
41[[#bc647c20]]
IASTFragment 
42[[#bc647c20]]
IJavaElement 
43[[#bc647c20]]
IASTFragment