Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 1 | 0.979 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 306 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java |
2 | 5 | 313 | 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()]); } |
| ||||
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()]); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#633cd540]] | IResource |
1 | 2 | [[#633cd540]] | IJavaElement |