Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 1 | 0.952 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 440 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java |
2 | 12 | 1037 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java |
| ||||
public boolean canChildrenBeDestinations(IJavaElement javaElement) { switch (javaElement.getElementType()) { case IJavaElement.JAVA_MODEL: case IJavaElement.JAVA_PROJECT: case IJavaElement.PACKAGE_FRAGMENT_ROOT: return true; default: return false; } } public boolean canChildrenBeDestinations(IResource resource) { return resource instanceof IContainer; } |
| ||||
public boolean canChildrenBeDestinations(IJavaElement javaElement) { switch (javaElement.getElementType()) { case IJavaElement.JAVA_MODEL: case IJavaElement.JAVA_PROJECT: case IJavaElement.PACKAGE_FRAGMENT_ROOT: //can be nested (with exclusion filters) return true; default: return false; } } public boolean canChildrenBeDestinations(IResource resource) { return false; } |
| |||
public boolean canChildrenBeDestinations(IJavaElement javaElement) { switch (javaElement.getElementType()) { case IJavaElement.JAVA_MODEL: case IJavaElement.JAVA_PROJECT: case IJavaElement.PACKAGE_FRAGMENT_ROOT: //can be nested (with exclusion filters) return true; default: return false; } } public boolean canChildrenBeDestinations(IResource resource) { return [[#variable94586ee0]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#94586ee0]] | false |
1 | 2 | [[#94586ee0]] | resource instanceof IContainer |