CloneSet2346


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111341
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SortElementsOperation.java
21176
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/TextChangeCompatibility.java
Clone Instance
1
Line Count
11
Source Line
341
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SortElementsOperation.java

                if ( !parent.hasChildren()) {
                        parent.addChild(edit);
                        return;
                }
                TextEdit[] children = parent.getChildren();
                // First dive down to find the right parent.
                for (int i = 0; i < children.length; i++) {
                        TextEdit child = children[i];
                        if (covers(child, edit)) {
                                insert(child, edit);
                                return;
                        }
                }


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

                if ( !parent.hasChildren()) {
                        parent.addChild(edit);
                        return;
                }
                TextEdit[] children = parent.getChildren();
                // First dive down to find the right parent.
                for (int i = 0; i < children.length; i++) {
                        TextEdit child = children[i];
                        if (covers(child, edit)) {
                                insert(child, edit);
                                return;
                        }
                }


Clone AbstractionParameter Count: 0Parameter Bindings

if ( !parent.hasChildren()) {
  parent.addChild(edit);
  return;
}
TextEdit[] children = parent.getChildren();
// First dive down to find the right parent.
for (int i = 0; i < children.length; i++) {
  TextEdit child = children[i];
  if (covers(child, edit)) {
    insert(child, edit);
    return;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None