CloneSet2981


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

        public static boolean hasElementsNotOfType(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 Instance
2
Line Count
7
Source Line
399
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 hasElementsNotOfType(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 AbstractionParameter Count: 4Parameter Bindings

//type is _not_ a mask  
public static boolean hasElementsNotOfType( [[#variableb0c9dc00]][]  [[#variableb0c9db80]], int  [[#variableb0c9db00]]) {
  for (int i = 0; i <  [[#variableb0c9db80]].length; i++) {
     [[#variableb0c9dc00]]  [[#variableb0c9da80]]= [[#variableb0c9db80]][i];
    if ( [[#variableb0c9da80]]!= null && !isOfType( [[#variableb0c9da80]],  [[#variableb0c9db00]]))
      return true;
  }
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b0c9dc00]]
IResource 
12[[#b0c9dc00]]
IJavaElement 
21[[#b0c9db80]]
resources 
22[[#b0c9db80]]
javaElements 
31[[#b0c9db00]]
typeMask 
32[[#b0c9db00]]
type 
41[[#b0c9da80]]
resource 
42[[#b0c9da80]]
element