CloneSet2533


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


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

        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()]);
        }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#95721a40]]
IJavaElement 
12[[#95721a40]]
IResource 
21[[#95721b00]]
getJavaElements 
22[[#95721b00]]
getResources