CloneSet1659


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9220.975statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19583
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/AddSourceFolderWizardPage.java
29594
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/AddSourceFolderWizardPage.java
Clone Instance
1
Line Count
9
Source Line
583
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/AddSourceFolderWizardPage.java

                        IPath[] exlusions = (IPath[]) element.getAttribute(CPListElement.EXCLUSION);
                        if (exlusions != null) {
                                for (int i = 0; i < exlusions.length; i++) {
                                        if (elementPath.append(exlusions[i]).equals(oldPath)) {
                                                fModifiedElements.add(element);
                                                exlusions[i] = newPath.removeFirstSegments(elementPath.segmentCount());
                                        }
                                }
                                element.setAttribute(CPListElement.EXCLUSION, exlusions);
                        }


Clone Instance
2
Line Count
9
Source Line
594
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/AddSourceFolderWizardPage.java

                        IPath[] inclusion = (IPath[]) element.getAttribute(CPListElement.INCLUSION);
                        if (inclusion != null) {
                                for (int i = 0; i < inclusion.length; i++) {
                                        if (elementPath.append(inclusion[i]).equals(oldPath)) {
                                                fModifiedElements.add(element);
                                                inclusion[i] = newPath.removeFirstSegments(elementPath.segmentCount());
                                        }
                                }
                                element.setAttribute(CPListElement.INCLUSION, inclusion);
                        }


Clone AbstractionParameter Count: 2Parameter Bindings

IPath[]  [[#variable9c0ced00]]= (IPath[]) element.getAttribute(CPListElement. [[#variable97bcdf00]]);
if ( [[#variable9c0ced00]]!= null) {
  for (int i = 0; i <  [[#variable9c0ced00]].length; i++) {
    if (elementPath.append( [[#variable9c0ced00]][i]).equals(oldPath)) {
      fModifiedElements.add(element);
       [[#variable9c0ced00]][i] = newPath.removeFirstSegments(elementPath.segmentCount());
    }
  }
  element.setAttribute(CPListElement. [[#variable97bcdf00]],  [[#variable9c0ced00]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9c0ced00]]
inclusion 
12[[#9c0ced00]]
exlusions 
21[[#97bcdf00]]
INCLUSION 
22[[#97bcdf00]]
EXCLUSION