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.976 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 162 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java |
2 | 7 | 171 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java |
| ||||
if (ReorgUtils.hasElementsOfType(javaElements, IJavaElement.PACKAGE_FRAGMENT)) { if (resources.length != 0 || ReorgUtils.hasElementsNotOfType(javaElements, IJavaElement.PACKAGE_FRAGMENT)) return NO; if (copy) return new CopyPackagesPolicy(ArrayTypeConverter.toPackageArray(javaElements)); else return new MovePackagesPolicy(ArrayTypeConverter.toPackageArray(javaElements)); } |
| ||||
if (ReorgUtils.hasElementsOfType(javaElements, IJavaElement.PACKAGE_FRAGMENT_ROOT)) { if (resources.length != 0 || ReorgUtils.hasElementsNotOfType(javaElements, IJavaElement.PACKAGE_FRAGMENT_ROOT)) return NO; if (copy) return new CopyPackageFragmentRootsPolicy(ArrayTypeConverter.toPackageFragmentRootArray(javaElements)); else return new MovePackageFragmentRootsPolicy(ArrayTypeConverter.toPackageFragmentRootArray(javaElements)); } |
| |||
if (ReorgUtils.hasElementsOfType(javaElements, IJavaElement. [[#variablec1900ee0]])) { if (resources.length != 0 || ReorgUtils.hasElementsNotOfType(javaElements, IJavaElement. [[#variablec1900ee0]])) return NO; if (copy) return new [[#variable586661c0]](ArrayTypeConverter. [[#variable586662c0]](javaElements)); else return new [[#variablec1900be0]](ArrayTypeConverter. [[#variable586662c0]](javaElements)); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#c1900ee0]] | PACKAGE_FRAGMENT |
1 | 2 | [[#c1900ee0]] | PACKAGE_FRAGMENT_ROOT |
2 | 1 | [[#586661c0]] | CopyPackagesPolicy |
2 | 2 | [[#586661c0]] | CopyPackageFragmentRootsPolicy |
3 | 1 | [[#586662c0]] | toPackageArray |
3 | 2 | [[#586662c0]] | toPackageFragmentRootArray |
4 | 1 | [[#c1900be0]] | MovePackagesPolicy |
4 | 2 | [[#c1900be0]] | MovePackageFragmentRootsPolicy |