Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 2 | 0.987 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 318 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java |
2 | 14 | 1118 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java |
| ||||
public static boolean isExtractInterfaceAvailable( final IStructuredSelection selection) throws JavaModelException { if (selection.size() == 1) { Object first = selection.getFirstElement(); if (first instanceof IType) { return isExtractInterfaceAvailable((IType) first); } else if (first instanceof ICompilationUnit) { ICompilationUnit unit = (ICompilationUnit) first; if ( !unit.exists() || unit.isReadOnly()) return false; return true; } } return false; } |
| ||||
public static boolean isUseSuperTypeAvailable( final IStructuredSelection selection) throws JavaModelException { if (selection.size() == 1) { final Object first = selection.getFirstElement(); if (first instanceof IType) { return isUseSuperTypeAvailable((IType) first); } else if (first instanceof ICompilationUnit) { ICompilationUnit unit = (ICompilationUnit) first; if ( !unit.exists() || unit.isReadOnly()) return false; return true; } } return false; } |
| |||
public static boolean [[#variable95767b00]]( final IStructuredSelection selection) throws JavaModelException { if (selection.size() == 1) { [[#variableb1e68760]]Object first = selection.getFirstElement(); if (first instanceof IType) { return [[#variable95767b00]]((IType) first); } else if (first instanceof ICompilationUnit) { ICompilationUnit unit = (ICompilationUnit) first; if ( !unit.exists() || unit.isReadOnly()) return false; return true; } } return false; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#95767b00]] | isExtractInterfaceAvailable |
1 | 2 | [[#95767b00]] | isUseSuperTypeAvailable |
2 | 1 | [[#b1e68760]] | |
2 | 2 | [[#b1e68760]] | final |