Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 2 | 0.986 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 75 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java |
2 | 6 | 75 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/RefactoringActions.java |
| ||||
public static IType getDeclaringType(IJavaElement element) { if (element == null) return null; if ( !(element instanceof IType)) element = element.getAncestor(IJavaElement.TYPE); return (IType) element; } |
| ||||
private static IType convertToEnclosingType(IJavaElement element) { if (element == null) return null; if ( ! (element instanceof IType)) element = element.getAncestor(IJavaElement.TYPE); return (IType) element; } |
| |||
[[#variable95e99ba0]]static IType [[#variable95e99b00]](IJavaElement element) { if (element == null) return null; if ( !(element instanceof IType)) element = element.getAncestor(IJavaElement.TYPE); return (IType) element; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#95e99ba0]] | public |
1 | 2 | [[#95e99ba0]] | private |
2 | 1 | [[#95e99b00]] | getDeclaringType |
2 | 2 | [[#95e99b00]] | convertToEnclosingType |