CloneSet4868


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.986class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1675
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java
2675
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/RefactoringActions.java
Clone Instance
1
Line Count
6
Source Line
75
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java

        public static IType getDeclaringType(IJavaElement element) {
                if (element == null)
                        return null;
                if ( !(element instanceof IType))
                        element = element.getAncestor(IJavaElement.TYPE);
                return (IType) element;
        }


Clone Instance
2
Line Count
6
Source Line
75
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/RefactoringActions.java

        private static IType convertToEnclosingType(IJavaElement element) {
                if (element == null)
                        return null;
                if ( ! (element instanceof IType))
                        element = element.getAncestor(IJavaElement.TYPE);
                return (IType) element;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

 [[#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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#95e99ba0]]
public 
12[[#95e99ba0]]
private 
21[[#95e99b00]]
getDeclaringType 
22[[#95e99b00]]
convertToEnclosingType