CloneSet2090


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14220.987class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114318
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java
2141118
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java
Clone Instance
1
Line Count
14
Source Line
318
Source File
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;
        }


Clone Instance
2
Line Count
14
Source Line
1118
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java

        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;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#95767b00]]
isExtractInterfaceAvailable 
12[[#95767b00]]
isUseSuperTypeAvailable 
21[[#b1e68760]]
22[[#b1e68760]]
final