| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 7 | 2 | 4 | 0.953 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 7 | 389 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java |
| 2 | 7 | 399 | 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;
}
|
| ||||
//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;
}
|
| |||
//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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b0c9dc00]] | IResource |
| 1 | 2 | [[#b0c9dc00]] | IJavaElement |
| 2 | 1 | [[#b0c9db80]] | resources |
| 2 | 2 | [[#b0c9db80]] | javaElements |
| 3 | 1 | [[#b0c9db00]] | typeMask |
| 3 | 2 | [[#b0c9db00]] | type |
| 4 | 1 | [[#b0c9da80]] | resource |
| 4 | 2 | [[#b0c9da80]] | element |