CloneSet165


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22530.960statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12520
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/model/TestRunSession.java
22744
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaModelUtil.java
3269
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/TextChangeCompatibility.java
42837
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractMethodRefactoring.java
52217
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/flow/FlowInfo.java
62622
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsTCModel.java
7290
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSScanner.java
8288
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/JavaElementTransfer.java
92131
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/nls/search/NLSSearchResult.java
102225
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/CopyToClipboardAction.java
11289
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/TypedSourceTransfer.java
122189
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchResult.java
132122
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SearchResultUpdater.java
142144
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SearchResultUpdater.java
152249
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AssignToVariableAssistProposal.java
162196
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java
172240
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java
182419
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java
192439
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java
202131
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/RemoveDeclarationCorrectionProposal.java
212159
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/TypeChangeCompletionProposal.java
222161
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/JavaWorkingSetUpdater.java
232166
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/JavaWorkingSetUpdater.java
242196
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/JavaWorkingSetUpdater.java
252119
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/OthersWorkingSetUpdater.java
Clone Instance
1
Line Count
2
Source Line
520
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/model/TestRunSession.java

                        for (int i = 0; i < children.length; i++) {
                                addFailures(failures, children[i]);
                        }


Clone Instance
2
Line Count
2
Source Line
744
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaModelUtil.java

                for (int i = 0; i < javaElements.length; i++) {
                        addAllCus(result, javaElements[i]);
                }


Clone Instance
3
Line Count
2
Source Line
69
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/TextChangeCompatibility.java

                for (int i = 0; i < edits.length; i++) {
                        insert(root, edits[i]);
                }


Clone Instance
4
Line Count
2
Source Line
837
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractMethodRefactoring.java

                for (int i = 0; i < methodLocals.length; i++) {
                        processVariable(result, methodLocals[i]);
                }


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

                for (int i = 0; i < exceptions.length; i++) {
                        handleException(catchClauses, exceptions[i]);
                }


Clone Instance
6
Line Count
2
Source Line
622
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsTCModel.java

                for (int i = 0; i < interfaces.length; i++) {
                        makeSupertypeElementVariables(expressionCv, interfaces[i]);
                }


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

                        for (int i = 0; i < result.length; i++) {
                                setTagPositions(document, result[i]);
                        }


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

                        //write each element
                        for (int i = 0; i < javaElements.length; i++) {
                                writeJavaElement(dataOut, javaElements[i]);
                        }


Clone Instance
9
Line Count
2
Source Line
131
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/nls/search/NLSSearchResult.java

                                for (int i = 0; i < children.length; i++) {
                                        collectMatches(matches, children[i]);
                                }


Clone Instance
10
Line Count
2
Source Line
225
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/CopyToClipboardAction.java

                        for (int i = 0; i < resources.length; i++) {
                                addFileName(fileName, resources[i]);
                        }


Clone Instance
11
Line Count
2
Source Line
89
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/TypedSourceTransfer.java

                        for (int i = 0; i < sources.length; i++) {
                                writeJavaElement(dataOut, sources[i]);
                        }


Clone Instance
12
Line Count
2
Source Line
189
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchResult.java

                                for (int i = 0; i < children.length; i++) {
                                        collectMatches(matches, children[i]);
                                }


Clone Instance
13
Line Count
2
Source Line
122
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SearchResultUpdater.java

                        for (int i = 0; i < resourceDeltas.length; i++) {
                                collectRemovals(removedElements, resourceDeltas[i]);
                        }


Clone Instance
14
Line Count
2
Source Line
144
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SearchResultUpdater.java

                        for (int i = 0; i < children.length; i++) {
                                collectRemovals(removals, children[i]);
                        }


Clone Instance
15
Line Count
2
Source Line
249
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AssignToVariableAssistProposal.java

                for (int i = 0; i < proposals.length; i++) {
                        addLinkedPositionProposal(KEY_TYPE, proposals[i]);
                }


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

                        for (int i = 0; i < otherProposals.length; i++) {
                                addLinkedPositionProposal(KEY_TYPE, otherProposals[i]);
                        }


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

                        for (int i = 0; i < typeProposals.length; i++) {
                                addLinkedPositionProposal(key, typeProposals[i]);
                        }


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

                                        for (int i = 0; i < bindings.length; i++) {
                                                addLinkedPositionProposal(KEY_TYPE, bindings[i]);
                                        }


Clone Instance
19
Line Count
2
Source Line
439
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java

                                for (int i = 0; i < typeProposals.length; i++) {
                                        addLinkedPositionProposal(KEY_TYPE, typeProposals[i]);
                                }


Clone Instance
20
Line Count
2
Source Line
131
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/RemoveDeclarationCorrectionProposal.java

                        for (int i = 0; i < references.length; i++) {
                                removeVariableReferences(rewrite, references[i]);
                        }


Clone Instance
21
Line Count
2
Source Line
159
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/TypeChangeCompletionProposal.java

                                for (int i = 0; i < typeProposals.length; i++) {
                                        addLinkedPositionProposal(KEY_TYPE, typeProposals[i]);
                                }


Clone Instance
22
Line Count
2
Source Line
161
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/JavaWorkingSetUpdater.java

                        for (int i = 0; i < resourceDeltas.length; i++) {
                                processResourceDelta(result, resourceDeltas[i]);
                        }


Clone Instance
23
Line Count
2
Source Line
166
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/JavaWorkingSetUpdater.java

                for (int i = 0; i < children.length; i++) {
                        processJavaDelta(result, children[i]);
                }


Clone Instance
24
Line Count
2
Source Line
196
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/JavaWorkingSetUpdater.java

                for (int i = 0; i < children.length; i++) {
                        processResourceDelta(result, children[i]);
                }


Clone Instance
25
Line Count
2
Source Line
119
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/OthersWorkingSetUpdater.java

                        for (int i = 0; i < children.length; i++) {
                                processJavaDelta(elements, children[i]);
                        }


Clone AbstractionParameter Count: 3Parameter Bindings

//write each element
for (int i = 0; i <  [[#variableb9f53860]].length; i++) {
   [[#variableb9f537e0]]( [[#variableb9f53700]],  [[#variableb9f53860]][i]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b9f53860]]
children 
12[[#b9f53860]]
typeProposals 
13[[#b9f53860]]
children 
14[[#b9f53860]]
javaElements 
15[[#b9f53860]]
edits 
16[[#b9f53860]]
methodLocals 
17[[#b9f53860]]
exceptions 
18[[#b9f53860]]
interfaces 
19[[#b9f53860]]
result 
110[[#b9f53860]]
javaElements 
111[[#b9f53860]]
children 
112[[#b9f53860]]
resourceDeltas 
113[[#b9f53860]]
proposals 
114[[#b9f53860]]
typeProposals 
115[[#b9f53860]]
otherProposals 
116[[#b9f53860]]
bindings 
117[[#b9f53860]]
references 
118[[#b9f53860]]
children 
119[[#b9f53860]]
children 
120[[#b9f53860]]
resourceDeltas 
121[[#b9f53860]]
children 
122[[#b9f53860]]
resources 
123[[#b9f53860]]
sources 
124[[#b9f53860]]
typeProposals 
125[[#b9f53860]]
children 
21[[#b9f537e0]]
collectMatches 
22[[#b9f537e0]]
addLinkedPositionProposal 
23[[#b9f537e0]]
addFailures 
24[[#b9f537e0]]
addAllCus 
25[[#b9f537e0]]
insert 
26[[#b9f537e0]]
processVariable 
27[[#b9f537e0]]
handleException 
28[[#b9f537e0]]
makeSupertypeElementVariables 
29[[#b9f537e0]]
setTagPositions 
210[[#b9f537e0]]
writeJavaElement 
211[[#b9f537e0]]
collectRemovals 
212[[#b9f537e0]]
collectRemovals 
213[[#b9f537e0]]
addLinkedPositionProposal 
214[[#b9f537e0]]
addLinkedPositionProposal 
215[[#b9f537e0]]
addLinkedPositionProposal 
216[[#b9f537e0]]
addLinkedPositionProposal 
217[[#b9f537e0]]
removeVariableReferences 
218[[#b9f537e0]]
processResourceDelta 
219[[#b9f537e0]]
processJavaDelta 
220[[#b9f537e0]]
processResourceDelta 
221[[#b9f537e0]]
processJavaDelta 
222[[#b9f537e0]]
addFileName 
223[[#b9f537e0]]
writeJavaElement 
224[[#b9f537e0]]
addLinkedPositionProposal 
225[[#b9f537e0]]
collectMatches 
31[[#b9f53700]]
matches 
32[[#b9f53700]]
KEY_TYPE 
33[[#b9f53700]]
failures 
34[[#b9f53700]]
result 
35[[#b9f53700]]
root 
36[[#b9f53700]]
result 
37[[#b9f53700]]
catchClauses 
38[[#b9f53700]]
expressionCv 
39[[#b9f53700]]
document 
310[[#b9f53700]]
dataOut 
311[[#b9f53700]]
removals 
312[[#b9f53700]]
removedElements 
313[[#b9f53700]]
KEY_TYPE 
314[[#b9f53700]]
key 
315[[#b9f53700]]
KEY_TYPE 
316[[#b9f53700]]
KEY_TYPE 
317[[#b9f53700]]
rewrite 
318[[#b9f53700]]
result 
319[[#b9f53700]]
result 
320[[#b9f53700]]
result 
321[[#b9f53700]]
elements 
322[[#b9f53700]]
fileName 
323[[#b9f53700]]
dataOut 
324[[#b9f53700]]
KEY_TYPE 
325[[#b9f53700]]
matches