CloneSet3161


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11055
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/RenameTypeWizard.java
210776
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/RenameTypeWizardSimilarElementsPage.java
Clone Instance
1
Line Count
10
Source Line
55
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/RenameTypeWizard.java

        public RenameTypeProcessor getRenameTypeProcessor() {
                RefactoringProcessor proc = ((RenameRefactoring) getRefactoring()).getProcessor();
                if (proc instanceof RenameTypeProcessor)
                        return (RenameTypeProcessor) proc;
                else if (proc instanceof RenameCompilationUnitProcessor) {
                        RenameCompilationUnitProcessor rcu = (RenameCompilationUnitProcessor) proc;
                        return rcu.getRenameTypeProcessor();
                     }
                Assert.isTrue(false); // Should never get here
                return null;
        }


Clone Instance
2
Line Count
10
Source Line
776
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/RenameTypeWizardSimilarElementsPage.java

        public RenameTypeProcessor getRenameTypeProcessor() {
                RefactoringProcessor proc = ((RenameRefactoring) getRefactoring()).getProcessor();
                if (proc instanceof RenameTypeProcessor)
                        return (RenameTypeProcessor) proc;
                else if (proc instanceof RenameCompilationUnitProcessor) {
                        RenameCompilationUnitProcessor rcu = (RenameCompilationUnitProcessor) proc;
                        return rcu.getRenameTypeProcessor();
                     }
                Assert.isTrue(false); // Should never get here
                return null;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

public RenameTypeProcessor getRenameTypeProcessor() {
  RefactoringProcessor proc = ((RenameRefactoring) getRefactoring()).getProcessor();
  if (proc instanceof RenameTypeProcessor)
    return (RenameTypeProcessor) proc;
  else
    if (proc instanceof RenameCompilationUnitProcessor) {
      RenameCompilationUnitProcessor rcu = (RenameCompilationUnitProcessor) proc;
      return rcu.getRenameTypeProcessor();
    }
  Assert.isTrue(false); // Should never get here
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None