CloneSet1719


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10230.984statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1101756
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java
2101774
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java
Clone Instance
1
Line Count
10
Source Line
1756
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java

                        if (destination.equals(commonParent))
                                return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ReorgPolicyFactory_parent);
                        IContainer destinationAsContainer = getDestinationAsContainer();
                        if (destinationAsContainer != null && destinationAsContainer.equals(commonParent))
                                return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ReorgPolicyFactory_parent);
                        IPackageFragment destinationAsPackage = getDestinationAsPackageFragment();
                        if (destinationAsPackage != null && destinationAsPackage.equals(commonParent))
                                return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ReorgPolicyFactory_parent);

                        return superStatus;


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

                        if (destination.equals(commonParent))
                                return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ReorgPolicyFactory_parent);
                        IContainer destinationAsContainer = getDestinationAsContainer();
                        if (destinationAsContainer != null && destinationAsContainer.equals(commonParent))
                                return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ReorgPolicyFactory_parent);
                        IJavaElement destinationContainerAsPackage = getDestinationContainerAsJavaElement();
                        if (destinationContainerAsPackage != null && destinationContainerAsPackage.equals(commonParent))
                                return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ReorgPolicyFactory_parent);

                        return superStatus;


Clone AbstractionParameter Count: 3Parameter Bindings

if (destination.equals(commonParent))
  return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ReorgPolicyFactory_parent);
IContainer destinationAsContainer = getDestinationAsContainer();
if (destinationAsContainer != null && destinationAsContainer.equals(commonParent))
  return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ReorgPolicyFactory_parent);
 [[#variable5c239900]]  [[#variable5c239880]]= [[#variableb44a4fc0]]();
if ( [[#variable5c239880]]!= null && [[#variable5c239880]].equals(commonParent))
  return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ReorgPolicyFactory_parent);
return superStatus;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5c239900]]
IJavaElement 
12[[#5c239900]]
IPackageFragment 
21[[#5c239880]]
destinationContainerAsPackage 
22[[#5c239880]]
destinationAsPackage 
31[[#b44a4fc0]]
getDestinationContainerAsJavaElement 
32[[#b44a4fc0]]
getDestinationAsPackageFragment