CloneSet4837


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4220.979statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14116
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/TypeChangeCompletionProposal.java
24133
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/TypeChangeCompletionProposal.java
Clone Instance
1
Line Count
4
Source Line
116
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/TypeChangeCompletionProposal.java

                                                if (fieldDecl.fragments().indexOf(declNode) == 0) { // if it as the first in the list-> insert before
                                                        listRewrite.insertBefore(newField, parent, null);
                                                }
                                                else   {
                                                        listRewrite.insertAfter(newField, parent, null);
                                                }


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

                                                if (varDecl.fragments().indexOf(declNode) == 0) { // if it as the first in the list-> insert before
                                                        listRewrite.insertBefore(newStat, parent, null);
                                                }
                                                else   {
                                                        listRewrite.insertAfter(newStat, parent, null);
                                                }


Clone AbstractionParameter Count: 2Parameter Bindings

if ( [[#variable9bb3f3e0]].fragments().indexOf(declNode) == 0) { // if it as the first in the list-> insert before
  listRewrite.insertBefore( [[#variable9bb3f340]], parent, null);
}
else {
  listRewrite.insertAfter( [[#variable9bb3f340]], parent, null);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9bb3f3e0]]
varDecl 
12[[#9bb3f3e0]]
fieldDecl 
21[[#9bb3f340]]
newStat 
22[[#9bb3f340]]
newField