CloneSet5692


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6210.992statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16248
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CreateElementInCUOperation.java
26256
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CreateElementInCUOperation.java
Clone Instance
1
Line Count
6
Source Line
248
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CreateElementInCUOperation.java

                                        if (childListPropertyDescriptor.getElementType().isAssignableFrom(element.getClass()))
                                                rewrite.insertBefore(child, element, null);
                                        else
                                                // case of an empty import list: the anchor element is the top level type and cannot be used in insertBefore as it is not the same type
                                                rewrite.insertLast(child, null);
                                        break;


Clone Instance
2
Line Count
6
Source Line
256
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CreateElementInCUOperation.java

                                        if (childListPropertyDescriptor.getElementType().isAssignableFrom(element.getClass()))
                                                rewrite.insertAfter(child, element, null);
                                        else
                                                // case of an empty import list: the anchor element is the top level type and cannot be used in insertAfter as it is not the same type
                                                rewrite.insertLast(child, null);
                                        break;


Clone AbstractionParameter Count: 1Parameter Bindings

if (childListPropertyDescriptor.getElementType().isAssignableFrom(element.getClass()))
  rewrite. [[#variable9239e0e0]](child, element, null);
else
  // case of an empty import list: the anchor element is the top level type and cannot be used in insertAfter as it is not the same type
  // case of an empty import list: the anchor element is the top level type and cannot be used in insertBefore as it is not the same type
  rewrite.insertLast(child, null);
break;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9239e0e0]]
insertAfter 
12[[#9239e0e0]]
insertBefore