| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 9 | 2 | 2 | 0.975 | statement_sequence[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 9 | 583 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/AddSourceFolderWizardPage.java |
| 2 | 9 | 594 | 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);
}
|
| ||||
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);
}
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#9c0ced00]] | inclusion |
| 1 | 2 | [[#9c0ced00]] | exlusions |
| 2 | 1 | [[#97bcdf00]] | INCLUSION |
| 2 | 2 | [[#97bcdf00]] | EXCLUSION |