Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 5 | 0.973 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 1556 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java |
2 | 9 | 1631 | 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; } |
| ||||
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; } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#94def8a0]] | IJavaProject |
1 | 2 | [[#94def8a0]] | IPackageFragmentRoot |
2 | 1 | [[#94def7e0]] | javaProject |
2 | 2 | [[#94def7e0]] | root |
3 | 1 | [[#94def7a0]] | getDestinationJavaProject |
3 | 2 | [[#94def7a0]] | getDestinationAsPackageFragmentRoot |
4 | 1 | [[#94def740]] | getPackageFragmentRoots |
4 | 2 | [[#94def740]] | getPackages |
5 | 1 | [[#94def760]] | ReorgPolicyFactory_element2parent |
5 | 2 | [[#94def760]] | ReorgPolicyFactory_package2parent |