CloneSet209


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13450.968statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113996
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractSupertypeProcessor.java
2131010
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractSupertypeProcessor.java
3131024
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractSupertypeProcessor.java
4131038
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractSupertypeProcessor.java
Clone Instance
1
Line Count
13
Source Line
996
Source File
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()]);


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

                        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()]);


Clone Instance
3
Line Count
13
Source Line
1024
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractSupertypeProcessor.java

                        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()]);


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

                        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()]);


Clone AbstractionParameter Count: 5Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bee39c20]]
typeCount 
12[[#bee39c20]]
abstractCount 
13[[#bee39c20]]
deleteCount 
14[[#bee39c20]]
extractCount 
21[[#55c0d7e0]]
extractCount + abstractCount + deleteCount + index 
22[[#55c0d7e0]]
extractCount + abstractCount + index 
23[[#55c0d7e0]]
extractCount + index 
24[[#55c0d7e0]]
index 
31[[#b48aa760]]
createInputFatalStatus 
32[[#b48aa760]]
createInputWarningStatus 
33[[#b48aa760]]
createInputWarningStatus 
34[[#b48aa760]]
createInputWarningStatus 
41[[#b48aa320]]
fTypesToExtract 
42[[#b48aa320]]
fAbstractMethods 
43[[#b48aa320]]
fDeletedMethods 
44[[#b48aa320]]
fMembersToMove 
51[[#be793ec0]]
IType 
52[[#be793ec0]]
IMethod 
53[[#be793ec0]]
IMethod 
54[[#be793ec0]]
IMember