| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 11 | 2 | 3 | 0.967 | statement_sequence[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 11 | 1309 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/ClasspathModifier.java |
| 2 | 11 | 1322 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/ClasspathModifier.java |
| ||||
IPath[] exlusions = (IPath[]) element.getAttribute(CPListElement.EXCLUSION);
if (exlusions != null) {
List exlusionList = new ArrayList(exlusions.length);
for (int i = 0; i < exlusions.length; i++) {
if ( !exlusions[i].equals(path)) {
exlusionList.add(exlusions[i]);
}
else {
hasChange = true;
}
}
element.setAttribute(CPListElement.EXCLUSION, exlusionList.toArray(new IPath[exlusionList.size()]));
}
|
| ||||
IPath[] inclusion = (IPath[]) element.getAttribute(CPListElement.INCLUSION);
if (inclusion != null) {
List inclusionList = new ArrayList(inclusion.length);
for (int i = 0; i < inclusion.length; i++) {
if ( !inclusion[i].equals(path)) {
inclusionList.add(inclusion[i]);
}
else {
hasChange = true;
}
}
element.setAttribute(CPListElement.INCLUSION, inclusionList.toArray(new IPath[inclusionList.size()]));
}
|
| |||
IPath[] [[#variable7737f500]]= (IPath[]) element.getAttribute(CPListElement. [[#variablebaca5c60]]);
if ( [[#variable7737f500]]!= null) {
List [[#variableb4fef8c0]]= new ArrayList( [[#variable7737f500]].length);
for (int i = 0; i < [[#variable7737f500]].length; i++) {
if ( ! [[#variable7737f500]][i].equals(path)) {
[[#variableb4fef8c0]].add( [[#variable7737f500]][i]);
}
else {
hasChange = true;
}
}
element.setAttribute(CPListElement. [[#variablebaca5c60]], [[#variableb4fef8c0]].toArray(new IPath[ [[#variableb4fef8c0]].size()]));
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#7737f500]] | inclusion |
| 1 | 2 | [[#7737f500]] | exlusions |
| 2 | 1 | [[#baca5c60]] | INCLUSION |
| 2 | 2 | [[#baca5c60]] | EXCLUSION |
| 3 | 1 | [[#b4fef8c0]] | inclusionList |
| 3 | 2 | [[#b4fef8c0]] | exlusionList |