Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 3 | 0.984 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 357 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractInterfaceProcessor.java |
2 | 4 | 302 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractSupertypeProcessor.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))); |
| ||||
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))); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b2b21e40]] | ExtractInterfaceRefactoring_name |
1 | 2 | [[#b2b21e40]] | ExtractSupertypeProcessor_extract_supertype |
2 | 1 | [[#b451c6a0]] | fSubType |
2 | 2 | [[#b451c6a0]] | declaring |
3 | 1 | [[#b495bc40]] | fSuperName |
3 | 2 | [[#b495bc40]] | fTypeName |