CloneSet1673


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4230.984statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14357
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractInterfaceProcessor.java
24302
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractSupertypeProcessor.java
Clone Instance
1
Line Count
4
Source Line
357
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractInterfaceProcessor.java

                        final DynamicValidationRefactoringChange change = new DynamicValidationRefactoringChange(descriptor, RefactoringCoreMessages.ExtractInterfaceRefactoring_name, fChangeManager.getAllChanges());
                        final IFile file = ResourceUtil.getFile(fSubType.getCompilationUnit());
                        if (fSuperSource != null && fSuperSource.length() > 0)
                                change.add(new CreateCompilationUnitChange(fSubType.getPackageFragment().getCompilationUnit(JavaModelUtil.getRenamedCUName(fSubType.getCompilationUnit(), fSuperName)), fSuperSource, file.getCharset(false)));


Clone Instance
2
Line Count
4
Source Line
302
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractSupertypeProcessor.java

                        final DynamicValidationRefactoringChange change = new DynamicValidationRefactoringChange(descriptor, RefactoringCoreMessages.ExtractSupertypeProcessor_extract_supertype, fChangeManager.getAllChanges());
                        final IFile file = ResourceUtil.getFile(declaring.getCompilationUnit());
                        if (fSuperSource != null && fSuperSource.length() > 0)
                                change.add(new CreateCompilationUnitChange(declaring.getPackageFragment().getCompilationUnit(JavaModelUtil.getRenamedCUName(declaring.getCompilationUnit(), fTypeName)), fSuperSource, file.getCharset(false)));


Clone AbstractionParameter Count: 3Parameter Bindings

final DynamicValidationRefactoringChange change = new DynamicValidationRefactoringChange(descriptor, RefactoringCoreMessages. [[#variableb2b21e40]], fChangeManager.getAllChanges());
final IFile file = ResourceUtil.getFile( [[#variableb451c6a0]].getCompilationUnit());
if (fSuperSource != null && fSuperSource.length() > 0)
  change.add(new CreateCompilationUnitChange( [[#variableb451c6a0]].getPackageFragment().getCompilationUnit(JavaModelUtil.getRenamedCUName( [[#variableb451c6a0]].getCompilationUnit(),  [[#variableb495bc40]])), fSuperSource, file.getCharset(false)));
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b2b21e40]]
ExtractInterfaceRefactoring_name 
12[[#b2b21e40]]
ExtractSupertypeProcessor_extract_supertype 
21[[#b451c6a0]]
fSubType 
22[[#b451c6a0]]
declaring 
31[[#b495bc40]]
fSuperName 
32[[#b495bc40]]
fTypeName