Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 4 | 0.952 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 485 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/PromoteTempToFieldRefactoring.java |
2 | 4 | 180 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewHierarchicalContentProvider.java |
| ||||
for (Iterator iter = bodyDeclarations.iterator(); iter.hasNext();) { Object each = iter.next(); if (each instanceof FieldDeclaration) fields.add(each); } |
| ||||
for (Iterator iter = elements.iterator(); iter.hasNext();) { Object elem = iter.next(); if (elem instanceof IPackageFragment) packageFragments.add(elem); } |
| |||
for (Iterator iter = [[#variable7db1f420]].iterator(); iter.hasNext();) { Object [[#variable7db1f3a0]]= iter.next(); if ( [[#variable7db1f3a0]]instanceof [[#variable7db1f320]]) [[#variable7db1f260]].add( [[#variable7db1f3a0]]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#7db1f420]] | bodyDeclarations |
1 | 2 | [[#7db1f420]] | elements |
2 | 1 | [[#7db1f3a0]] | each |
2 | 2 | [[#7db1f3a0]] | elem |
3 | 1 | [[#7db1f320]] | FieldDeclaration |
3 | 2 | [[#7db1f320]] | IPackageFragment |
4 | 1 | [[#7db1f260]] | fields |
4 | 2 | [[#7db1f260]] | packageFragments |