CloneSet2389


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7240.976statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17162
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java
27171
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java
Clone Instance
1
Line Count
7
Source Line
162
Source File
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));
                }


Clone Instance
2
Line Count
7
Source Line
171
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java

                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));
                }


Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c1900ee0]]
PACKAGE_FRAGMENT 
12[[#c1900ee0]]
PACKAGE_FRAGMENT_ROOT 
21[[#586661c0]]
CopyPackagesPolicy 
22[[#586661c0]]
CopyPackageFragmentRootsPolicy 
31[[#586662c0]]
toPackageArray 
32[[#586662c0]]
toPackageFragmentRootArray 
41[[#c1900be0]]
MovePackagesPolicy 
42[[#c1900be0]]
MovePackageFragmentRootsPolicy