CloneSet2023


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6210.993statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16277
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SortElementsOperation.java
26288
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SortElementsOperation.java
Clone Instance
1
Line Count
6
Source Line
277
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SortElementsOperation.java

                                if (length > 1) {
                                        final List myCopy = new ArrayList();
                                        myCopy.addAll(bodyDeclarations);
                                        Collections.sort(myCopy, SortElementsOperation.this.comparator);
                                        for (int i = 0; i < length; i++) {
                                                listRewrite.replace((ASTNode) bodyDeclarations.get(i), rewriter.createMoveTarget((ASTNode) myCopy.get(i)), null);
                                        }
                                }


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

                                if (length > 1) {
                                        final List myCopy = new ArrayList();
                                        myCopy.addAll(enumConstants);
                                        Collections.sort(myCopy, SortElementsOperation.this.comparator);
                                        for (int i = 0; i < length; i++) {
                                                listRewrite.replace((ASTNode) enumConstants.get(i), rewriter.createMoveTarget((ASTNode) myCopy.get(i)), null);
                                        }
                                }


Clone AbstractionParameter Count: 1Parameter Bindings

if (length > 1) {
  final List myCopy = new ArrayList();
  myCopy.addAll( [[#variable574af200]]);
  Collections.sort(myCopy, SortElementsOperation.this.comparator);
  for (int i = 0; i < length; i++) {
    listRewrite.replace((ASTNode)  [[#variable574af200]].get(i), rewriter.createMoveTarget((ASTNode) myCopy.get(i)), null);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#574af200]]
bodyDeclarations 
12[[#574af200]]
enumConstants