CloneSet2583


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

        public static IResource[] setMinus(IResource[] setToRemoveFrom, IResource[] elementsToRemove) {
                Set setMinus = new HashSet(setToRemoveFrom.length - setToRemoveFrom.length);
                setMinus.addAll(Arrays.asList(setToRemoveFrom));
                setMinus.removeAll(Arrays.asList(elementsToRemove));
                return (IResource[]) setMinus.toArray(new IResource[setMinus.size()]);
        }


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

        public static IJavaElement[] setMinus(IJavaElement[] setToRemoveFrom, IJavaElement[] elementsToRemove) {
                Set setMinus = new HashSet(setToRemoveFrom.length - setToRemoveFrom.length);
                setMinus.addAll(Arrays.asList(setToRemoveFrom));
                setMinus.removeAll(Arrays.asList(elementsToRemove));
                return (IJavaElement[]) setMinus.toArray(new IJavaElement[setMinus.size()]);
        }


Clone AbstractionParameter Count: 1Parameter Bindings

public static [[#variable633cd540]][] setMinus( [[#variable633cd540]][] setToRemoveFrom, [[#variable633cd540]][] elementsToRemove) {
  Set setMinus = new HashSet(setToRemoveFrom.length - setToRemoveFrom.length);
  setMinus.addAll(Arrays.asList(setToRemoveFrom));
  setMinus.removeAll(Arrays.asList(elementsToRemove));
  return ( [[#variable633cd540]][]) setMinus.toArray(new [[#variable633cd540]][setMinus.size()]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#633cd540]]
IResource 
12[[#633cd540]]
IJavaElement