CloneSet3000


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7240.952class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17409
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java
27425
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java
Clone Instance
1
Line Count
7
Source Line
409
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java

        //type is _not_ a mask  
        public static boolean hasElementsOfType(IJavaElement[] javaElements, int type) {
                for (int i = 0; i < javaElements.length; i++) {
                        IJavaElement element = javaElements[i];
                        if (element != null && isOfType(element, type))
                                return true;
                }
                return false;
        }


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

        public static boolean hasElementsOfType(IResource[] resources, int typeMask) {
                for (int i = 0; i < resources.length; i++) {
                        IResource resource = resources[i];
                        if (resource != null && isOfType(resource, typeMask))
                                return true;
                }
                return false;
        }


Clone AbstractionParameter Count: 4Parameter Bindings

//type is _not_ a mask  
public static boolean hasElementsOfType( [[#variable5e733e20]][]  [[#variable5e7330c0]], int  [[#variable5e733060]]) {
  for (int i = 0; i <  [[#variable5e7330c0]].length; i++) {
     [[#variable5e733e20]]  [[#variable5e733d80]]= [[#variable5e7330c0]][i];
    if ( [[#variable5e733d80]]!= null && isOfType( [[#variable5e733d80]],  [[#variable5e733060]]))
      return true;
  }
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5e733e20]]
IJavaElement 
12[[#5e733e20]]
IResource 
21[[#5e7330c0]]
javaElements 
22[[#5e7330c0]]
resources 
31[[#5e733060]]
type 
32[[#5e733060]]
typeMask 
41[[#5e733d80]]
element 
42[[#5e733d80]]
resource