CloneSet266


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22030.958statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12288
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/SourceLookupBlock.java
22197
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/ScrapbookLauncher.java
32209
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java
42212
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java
52518
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ConvertForLoopOperation.java
62521
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ConvertForLoopOperation.java
72162
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringScopeFactory.java
82179
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringScopeFactory.java
92391
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenamePackageProcessor.java
10255
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/SearchResultGroup.java
112428
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java
1221368
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PullUpRefactoringProcessor.java
132340
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/SearchScopeActionGroup.java
142325
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/OverrideMethodDialog.java
152330
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/OverrideMethodDialog.java
162129
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AbstractMethodCompletionProposal.java
172147
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ChangeMethodSignatureProposal.java
182266
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ChangeMethodSignatureProposal.java
192770
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/AnnotationExpansionControl.java
202114
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ProjectTemplateStore.java
Clone Instance
1
Line Count
2
Source Line
288
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/SourceLookupBlock.java

                                        for (int i = 0; i < entries.length; i++) {
                                                mementos.add(entries[i].getMemento());
                                        }


Clone Instance
2
Line Count
2
Source Line
197
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/ScrapbookLauncher.java

                        for (int i = 0; i < classPath.length; i++) {
                                classpathList.add(classPath[i].getMemento());
                        }


Clone Instance
3
Line Count
2
Source Line
209
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java

                        for (int i = 0; i < varsBefore.length; i++) {
                                names.add(varsBefore[i].getName());
                        }


Clone Instance
4
Line Count
2
Source Line
212
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java

                        for (int i = 0; i < varsAfter.length; i++) {
                                names.add(varsAfter[i].getName());
                        }


Clone Instance
5
Line Count
2
Source Line
518
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ConvertForLoopOperation.java

                for (int i = 0; i < varsBefore.length; i++) {
                        names.add(varsBefore[i].getName());
                }


Clone Instance
6
Line Count
2
Source Line
521
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ConvertForLoopOperation.java

                for (int i = 0; i < varsAfter.length; i++) {
                        names.add(varsAfter[i].getName());
                }


Clone Instance
7
Line Count
2
Source Line
162
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringScopeFactory.java

                for (int i = 0; i < javaElements.length; i++) {
                        projects.add(javaElements[i].getJavaProject());
                }


Clone Instance
8
Line Count
2
Source Line
179
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringScopeFactory.java

                for (int i = 0; i < javaElements.length; i++) {
                        projects.add(javaElements[i].getJavaProject());
                }


Clone Instance
9
Line Count
2
Source Line
391
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenamePackageProcessor.java

                for (int i = 0; i < types.length; i++) {
                        result.add(types[i].getElementName());
                }


Clone Instance
10
Line Count
2
Source Line
55
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/SearchResultGroup.java

                for (int i = 0; i < searchResultGroups.length; i++) {
                        resourceSet.add(searchResultGroups[i].getResource());
                }


Clone Instance
11
Line Count
2
Source Line
428
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java

                        for (int i = 0; i < fields.length; i++) {
                                result.add(fields[i].getElementName());
                        }


Clone Instance
12
Line Count
2
Source Line
1368
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PullUpRefactoringProcessor.java

                for (int i = 0; i < allSubtypes.length; i++) {
                        result.add(allSubtypes[i].getCompilationUnit());
                }


Clone Instance
13
Line Count
2
Source Line
340
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/SearchScopeActionGroup.java

                        for (int i = 0; i < workingSets.length; i++) {
                                workingSetNames.add(workingSets[i].getName());
                        }


Clone Instance
14
Line Count
2
Source Line
325
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/OverrideMethodDialog.java

                for (int i = 0; i < toImplementArray.length; i++) {
                        expanded.add(toImplementArray[i].getDeclaringClass());
                }


Clone Instance
15
Line Count
2
Source Line
330
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/OverrideMethodDialog.java

                for (int i = 0; i < overridable.length; i++) {
                        types.add(overridable[i].getDeclaringClass());
                }


Clone Instance
16
Line Count
2
Source Line
129
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AbstractMethodCompletionProposal.java

                for (int i = 0; i < declaredFields.length; i++) { // avoid to take parameter names that are equal to field names
                        takenNames.add(declaredFields[i].getName());
                }


Clone Instance
17
Line Count
2
Source Line
147
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ChangeMethodSignatureProposal.java

                for (int i = 0; i < declaredFields.length; i++) { // avoid to take parameter names that are equal to field names
                        usedNames.add(declaredFields[i].getName());
                }


Clone Instance
18
Line Count
2
Source Line
266
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ChangeMethodSignatureProposal.java

                        for (int i = 0; i < bindings.length; i++) {
                                usedNames.add(bindings[i].getName());
                        }


Clone Instance
19
Line Count
2
Source Line
770
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/AnnotationExpansionControl.java

                for (int i = 0; i < ranges.length; i++) {
                        undoRanges.add(ranges[i].clone());
                }


Clone Instance
20
Line Count
2
Source Line
114
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ProjectTemplateStore.java

                        for (int i = 0; i < data.length; i++) {
                                datas.add(data[i].getId());
                        }


Clone AbstractionParameter Count: 3Parameter Bindings

for (int i = 0; i <  [[#variablebabd0aa0]].length; i++) { // avoid to take parameter names that are equal to field names
   [[#variablebabd0a40]].add( [[#variablebabd0aa0]][i]. [[#variablebabd0920]]());
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#babd0aa0]]
varsBefore 
12[[#babd0aa0]]
javaElements 
13[[#babd0aa0]]
varsAfter 
14[[#babd0aa0]]
entries 
15[[#babd0aa0]]
classPath 
16[[#babd0aa0]]
types 
17[[#babd0aa0]]
searchResultGroups 
18[[#babd0aa0]]
fields 
19[[#babd0aa0]]
allSubtypes 
110[[#babd0aa0]]
workingSets 
111[[#babd0aa0]]
overridable 
112[[#babd0aa0]]
toImplementArray 
113[[#babd0aa0]]
declaredFields 
114[[#babd0aa0]]
bindings 
115[[#babd0aa0]]
declaredFields 
116[[#babd0aa0]]
ranges 
117[[#babd0aa0]]
data 
118[[#babd0aa0]]
varsAfter 
119[[#babd0aa0]]
varsBefore 
120[[#babd0aa0]]
javaElements 
21[[#babd0a40]]
names 
22[[#babd0a40]]
projects 
23[[#babd0a40]]
names 
24[[#babd0a40]]
mementos 
25[[#babd0a40]]
classpathList 
26[[#babd0a40]]
result 
27[[#babd0a40]]
resourceSet 
28[[#babd0a40]]
result 
29[[#babd0a40]]
result 
210[[#babd0a40]]
workingSetNames 
211[[#babd0a40]]
types 
212[[#babd0a40]]
expanded 
213[[#babd0a40]]
takenNames 
214[[#babd0a40]]
usedNames 
215[[#babd0a40]]
usedNames 
216[[#babd0a40]]
undoRanges 
217[[#babd0a40]]
datas 
218[[#babd0a40]]
names 
219[[#babd0a40]]
names 
220[[#babd0a40]]
projects 
31[[#babd0920]]
getName 
32[[#babd0920]]
getJavaProject 
33[[#babd0920]]
getName 
34[[#babd0920]]
getMemento 
35[[#babd0920]]
getMemento 
36[[#babd0920]]
getElementName 
37[[#babd0920]]
getResource 
38[[#babd0920]]
getElementName 
39[[#babd0920]]
getCompilationUnit 
310[[#babd0920]]
getName 
311[[#babd0920]]
getDeclaringClass 
312[[#babd0920]]
getDeclaringClass 
313[[#babd0920]]
getName 
314[[#babd0920]]
getName 
315[[#babd0920]]
getName 
316[[#babd0920]]
clone 
317[[#babd0920]]
getId 
318[[#babd0920]]
getName 
319[[#babd0920]]
getName 
320[[#babd0920]]
getJavaProject