CloneSet2698


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8250.973class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
181556
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java
291631
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java
Clone Instance
1
Line Count
8
Source Line
1556
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java

                protected RefactoringStatus verifyDestination(IJavaElement javaElement) throws JavaModelException {
                        RefactoringStatus superStatus = super.verifyDestination(javaElement);
                        if (superStatus.hasFatalError())
                                return superStatus;
                        IJavaProject javaProject = getDestinationJavaProject();
                        if (isParentOfAny(javaProject, getPackageFragmentRoots()))
                                return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ReorgPolicyFactory_element2parent);
                        return superStatus;
                }


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

                protected RefactoringStatus verifyDestination(IJavaElement javaElement) throws JavaModelException {
                        RefactoringStatus superStatus = super.verifyDestination(javaElement);
                        if (superStatus.hasFatalError())
                                return superStatus;

                        IPackageFragmentRoot root = getDestinationAsPackageFragmentRoot();
                        if (isParentOfAny(root, getPackages()))
                                return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ReorgPolicyFactory_package2parent);
                        return superStatus;
                }


Clone AbstractionParameter Count: 5Parameter Bindings

protected RefactoringStatus verifyDestination(IJavaElement javaElement) throws JavaModelException {
  RefactoringStatus superStatus = super.verifyDestination(javaElement);
  if (superStatus.hasFatalError())
    return superStatus;
   [[#variable94def8a0]]  [[#variable94def7e0]]= [[#variable94def7a0]]();
  if (isParentOfAny( [[#variable94def7e0]],  [[#variable94def740]]()))
    return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages. [[#variable94def760]]);
  return superStatus;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#94def8a0]]
IJavaProject 
12[[#94def8a0]]
IPackageFragmentRoot 
21[[#94def7e0]]
javaProject 
22[[#94def7e0]]
root 
31[[#94def7a0]]
getDestinationJavaProject 
32[[#94def7a0]]
getDestinationAsPackageFragmentRoot 
41[[#94def740]]
getPackageFragmentRoots 
42[[#94def740]]
getPackages 
51[[#94def760]]
ReorgPolicyFactory_element2parent 
52[[#94def760]]
ReorgPolicyFactory_package2parent