CloneSet2692


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4230.974statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14172
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ReturnTypeSubProcessor.java
24158
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/TypeMismatchSubProcessor.java
Clone Instance
1
Line Count
4
Source Line
172
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ReturnTypeSubProcessor.java

                                proposal.addLinkedPosition(rewrite.track(newReturnType), true, key);
                                ITypeBinding[] bindings = ASTResolving.getRelaxingTypes(ast, binding);
                                for (int i = 0; i < bindings.length; i++) {
                                        proposal.addLinkedPositionProposal(key, bindings[i]);
                                }


Clone Instance
2
Line Count
4
Source Line
158
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/TypeMismatchSubProcessor.java

                                proposal.addLinkedPosition(rewrite.track(newReturnType), true, returnKey);
                                ITypeBinding[] typeSuggestions = ASTResolving.getRelaxingTypes(ast, currBinding);
                                for (int i = 0; i < typeSuggestions.length; i++) {
                                        proposal.addLinkedPositionProposal(returnKey, typeSuggestions[i]);
                                }


Clone AbstractionParameter Count: 3Parameter Bindings

proposal.addLinkedPosition(rewrite.track(newReturnType), true,  [[#variable584d4bc0]]);
ITypeBinding[]  [[#variable5b5581c0]]= ASTResolving.getRelaxingTypes(ast,  [[#variable53fc92a0]]);
for (int i = 0; i <  [[#variable5b5581c0]].length; i++) {
  proposal.addLinkedPositionProposal( [[#variable584d4bc0]],  [[#variable5b5581c0]][i]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#584d4bc0]]
returnKey 
12[[#584d4bc0]]
key 
21[[#5b5581c0]]
typeSuggestions 
22[[#5b5581c0]]
bindings 
31[[#53fc92a0]]
currBinding 
32[[#53fc92a0]]
binding