Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 1 | 0.993 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 277 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SortElementsOperation.java |
2 | 6 | 288 | 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); } } |
| ||||
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); } } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#574af200]] | bodyDeclarations |
1 | 2 | [[#574af200]] | enumConstants |