Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 2 | 0.979 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 83 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java |
2 | 7 | 127 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java |
| ||||
public static IJavaElement[] getJavaElements( final Object[] elements) { List result = new ArrayList(); for (int index = 0; index < elements.length; index++) { if (elements[index] instanceof IJavaElement) result.add(elements[index]); } return (IJavaElement[]) result.toArray(new IJavaElement[result.size()]); } |
| ||||
public static IResource[] getResources( final Object[] elements) { List result = new ArrayList(); for (int index = 0; index < elements.length; index++) { if (elements[index] instanceof IResource) result.add(elements[index]); } return (IResource[]) result.toArray(new IResource[result.size()]); } |
| |||
public static [[#variable95721a40]][] [[#variable95721b00]]( final Object[] elements) { List result = new ArrayList(); for (int index = 0; index < elements.length; index++) { if (elements[index] instanceof [[#variable95721a40]]) result.add(elements[index]); } return ( [[#variable95721a40]][]) result.toArray(new [[#variable95721a40]][result.size()]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#95721a40]] | IJavaElement |
1 | 2 | [[#95721a40]] | IResource |
2 | 1 | [[#95721b00]] | getJavaElements |
2 | 2 | [[#95721b00]] | getResources |