Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 4 | 5 | 0.968 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 996 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractSupertypeProcessor.java |
2 | 13 | 1010 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractSupertypeProcessor.java |
3 | 13 | 1024 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractSupertypeProcessor.java |
4 | 13 | 1038 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractSupertypeProcessor.java |
| ||||
for (int index = 0; index < extractCount; index++) { final String attribute = JavaRefactoringDescriptor.ATTRIBUTE_ELEMENT + (index + 1); handle = extended.getAttribute(attribute); if (handle != null && !"".equals(handle)) { //$NON-NLS-1$ final IJavaElement element = JavaRefactoringDescriptor.handleToElement(fOwner, extended.getProject(), handle, false); if (element == null || !element.exists()) status.merge(ScriptableRefactoring.createInputWarningStatus(element, getRefactoring().getName(), ID_EXTRACT_SUPERTYPE)); else elements.add(element); } else return RefactoringStatus.createFatalErrorStatus(Messages.format(RefactoringCoreMessages.InitializableRefactoring_argument_not_exist, attribute)); } fMembersToMove = (IMember[]) elements.toArray(new IMember[elements.size()]); |
| ||||
for (int index = 0; index < deleteCount; index++) { final String attribute = JavaRefactoringDescriptor.ATTRIBUTE_ELEMENT + (extractCount + index + 1); handle = extended.getAttribute(attribute); if (handle != null && !"".equals(handle)) { //$NON-NLS-1$ final IJavaElement element = JavaRefactoringDescriptor.handleToElement(fOwner, extended.getProject(), handle, false); if (element == null || !element.exists()) status.merge(ScriptableRefactoring.createInputWarningStatus(element, getRefactoring().getName(), ID_EXTRACT_SUPERTYPE)); else elements.add(element); } else return RefactoringStatus.createFatalErrorStatus(Messages.format(RefactoringCoreMessages.InitializableRefactoring_argument_not_exist, attribute)); } fDeletedMethods = (IMethod[]) elements.toArray(new IMethod[elements.size()]); |
| ||||
for (int index = 0; index < abstractCount; index++) { final String attribute = JavaRefactoringDescriptor.ATTRIBUTE_ELEMENT + (extractCount + abstractCount + index + 1); handle = extended.getAttribute(attribute); if (handle != null && !"".equals(handle)) { //$NON-NLS-1$ final IJavaElement element = JavaRefactoringDescriptor.handleToElement(fOwner, extended.getProject(), handle, false); if (element == null || !element.exists()) status.merge(ScriptableRefactoring.createInputWarningStatus(element, getRefactoring().getName(), ID_EXTRACT_SUPERTYPE)); else elements.add(element); } else return RefactoringStatus.createFatalErrorStatus(Messages.format(RefactoringCoreMessages.InitializableRefactoring_argument_not_exist, attribute)); } fAbstractMethods = (IMethod[]) elements.toArray(new IMethod[elements.size()]); |
| ||||
for (int index = 0; index < typeCount; index++) { final String attribute = JavaRefactoringDescriptor.ATTRIBUTE_ELEMENT + (extractCount + abstractCount + deleteCount + index + 1); handle = extended.getAttribute(attribute); if (handle != null && !"".equals(handle)) { //$NON-NLS-1$ final IJavaElement element = JavaRefactoringDescriptor.handleToElement(fOwner, extended.getProject(), handle, false); if (element == null || !element.exists()) status.merge(ScriptableRefactoring.createInputFatalStatus(element, getRefactoring().getName(), ID_EXTRACT_SUPERTYPE)); else elements.add(element); } else return RefactoringStatus.createFatalErrorStatus(Messages.format(RefactoringCoreMessages.InitializableRefactoring_argument_not_exist, attribute)); } fTypesToExtract = (IType[]) elements.toArray(new IType[elements.size()]); |
| |||
for (int index = 0; index < [[#variablebee39c20]]; index++) { final String attribute = JavaRefactoringDescriptor.ATTRIBUTE_ELEMENT + ( [[#variable55c0d7e0]] + 1); handle = extended.getAttribute(attribute); if (handle != null && !"".equals(handle)) { //$NON-NLS-1$ final IJavaElement element = JavaRefactoringDescriptor.handleToElement(fOwner, extended.getProject(), handle, false); if (element == null || !element.exists()) status.merge(ScriptableRefactoring. [[#variableb48aa760]](element, getRefactoring().getName(), ID_EXTRACT_SUPERTYPE)); else elements.add(element); } else return RefactoringStatus.createFatalErrorStatus(Messages.format(RefactoringCoreMessages.InitializableRefactoring_argument_not_exist, attribute)); } [[#variableb48aa320]]= ( [[#variablebe793ec0]][]) elements.toArray(new [[#variablebe793ec0]][elements.size()]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bee39c20]] | typeCount |
1 | 2 | [[#bee39c20]] | abstractCount |
1 | 3 | [[#bee39c20]] | deleteCount |
1 | 4 | [[#bee39c20]] | extractCount |
2 | 1 | [[#55c0d7e0]] | extractCount + abstractCount + deleteCount + index |
2 | 2 | [[#55c0d7e0]] | extractCount + abstractCount + index |
2 | 3 | [[#55c0d7e0]] | extractCount + index |
2 | 4 | [[#55c0d7e0]] | index |
3 | 1 | [[#b48aa760]] | createInputFatalStatus |
3 | 2 | [[#b48aa760]] | createInputWarningStatus |
3 | 3 | [[#b48aa760]] | createInputWarningStatus |
3 | 4 | [[#b48aa760]] | createInputWarningStatus |
4 | 1 | [[#b48aa320]] | fTypesToExtract |
4 | 2 | [[#b48aa320]] | fAbstractMethods |
4 | 3 | [[#b48aa320]] | fDeletedMethods |
4 | 4 | [[#b48aa320]] | fMembersToMove |
5 | 1 | [[#be793ec0]] | IType |
5 | 2 | [[#be793ec0]] | IMethod |
5 | 3 | [[#be793ec0]] | IMethod |
5 | 4 | [[#be793ec0]] | IMember |