Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 2 | 0.981 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 252 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java |
2 | 8 | 262 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java |
| ||||
public static IResource[] getResources(List elements) { List resources = new ArrayList(elements.size()); for (Iterator iter = elements.iterator(); iter.hasNext();) { Object element = iter.next(); if (element instanceof IResource) resources.add(element); } return (IResource[]) resources.toArray(new IResource[resources.size()]); } |
| ||||
public static IJavaElement[] getJavaElements(List elements) { List resources = new ArrayList(elements.size()); for (Iterator iter = elements.iterator(); iter.hasNext();) { Object element = iter.next(); if (element instanceof IJavaElement) resources.add(element); } return (IJavaElement[]) resources.toArray(new IJavaElement[resources.size()]); } |
| |||
public static [[#variableb8cd3440]][] [[#variableb8cd3060]](List elements) { List resources = new ArrayList(elements.size()); for (Iterator iter = elements.iterator(); iter.hasNext();) { Object element = iter.next(); if (element instanceof [[#variableb8cd3440]]) resources.add(element); } return ( [[#variableb8cd3440]][]) resources.toArray(new [[#variableb8cd3440]][resources.size()]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b8cd3440]] | IResource |
1 | 2 | [[#b8cd3440]] | IJavaElement |
2 | 1 | [[#b8cd3060]] | getResources |
2 | 2 | [[#b8cd3060]] | getJavaElements |