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.952 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 409 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java |
2 | 7 | 425 | 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; } |
| ||||
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; } |
| |||
//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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5e733e20]] | IJavaElement |
1 | 2 | [[#5e733e20]] | IResource |
2 | 1 | [[#5e7330c0]] | javaElements |
2 | 2 | [[#5e7330c0]] | resources |
3 | 1 | [[#5e733060]] | type |
3 | 2 | [[#5e733060]] | typeMask |
4 | 1 | [[#5e733d80]] | element |
4 | 2 | [[#5e733d80]] | resource |