| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 5 | 2 | 4 | 0.967 | statement_sequence[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 5 | 338 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeTypeRefactoring.java |
| 2 | 6 | 355 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeTypeRefactoring.java |
| ||||
// produce error message if array or primitive type is selected
if (fSelectionTypeBinding.isArray()) {
return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ChangeTypeRefactoring_arraysNotSupported);
}
if (fSelectionTypeBinding.isPrimitive()) {
return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ChangeTypeRefactoring_primitivesNotSupported);
}
|
| ||||
if (fSelectionTypeBinding.isTypeVariable()) {
return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ChangeTypeRefactoring_typeParametersNotSupported);
}
if (fSelectionTypeBinding.isEnum()) {
return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ChangeTypeRefactoring_enumsNotSupported);
}
|
| |||
// produce error message if array or primitive type is selected
if (fSelectionTypeBinding. [[#variable78b0aa00]]()) {
return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages. [[#variable78b0a9c0]]);
}
if (fSelectionTypeBinding. [[#variable78b0a940]]()) {
return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages. [[#variable78b0a8a0]]);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#78b0aa00]] | isArray |
| 1 | 2 | [[#78b0aa00]] | isTypeVariable |
| 2 | 1 | [[#78b0a9c0]] | ChangeTypeRefactoring_arraysNotSupported |
| 2 | 2 | [[#78b0a9c0]] | ChangeTypeRefactoring_typeParametersNotSupported |
| 3 | 1 | [[#78b0a940]] | isPrimitive |
| 3 | 2 | [[#78b0a940]] | isEnum |
| 4 | 1 | [[#78b0a8a0]] | ChangeTypeRefactoring_primitivesNotSupported |
| 4 | 2 | [[#78b0a8a0]] | ChangeTypeRefactoring_enumsNotSupported |