CloneSet2215


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

                int thisOffset = thisEdit.getOffset();
                int thisEnd = thisEdit.getExclusiveEnd();
                if (otherEdit.getLength() == 0) {
                        int otherOffset = otherEdit.getOffset();
                        return thisOffset <= otherOffset && otherOffset < thisEnd;
                }
                else   {
                        int otherOffset = otherEdit.getOffset();
                        int otherEnd = otherEdit.getExclusiveEnd();
                        return thisOffset <= otherOffset && otherEnd <= thisEnd;
                }


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

                int thisOffset = thisEdit.getOffset();
                int thisEnd = thisEdit.getExclusiveEnd();
                if (otherEdit.getLength() == 0) {
                        int otherOffset = otherEdit.getOffset();
                        return thisOffset < otherOffset && otherOffset < thisEnd;
                }
                else   {
                        int otherOffset = otherEdit.getOffset();
                        int otherEnd = otherEdit.getExclusiveEnd();
                        return thisOffset <= otherOffset && otherEnd <= thisEnd;
                }


Clone AbstractionParameter Count: 1Parameter Bindings

int thisOffset = thisEdit.getOffset();
int thisEnd = thisEdit.getExclusiveEnd();
if (otherEdit.getLength() == 0) {
  int otherOffset = otherEdit.getOffset();
  return [[#variableb56f58e0]]&& otherOffset < thisEnd;
}
else {
  int otherOffset = otherEdit.getOffset();
  int otherEnd = otherEdit.getExclusiveEnd();
  return thisOffset <= otherOffset && otherEnd <= thisEnd;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b56f58e0]]
thisOffset <= otherOffset 
12[[#b56f58e0]]
thisOffset < otherOffset