| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 2 | 2 | 0.962 | class_body_declarations[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 317 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/NameEnvironment.java |
| 2 | 9 | 199 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/JavaSearchNameEnvironment.java |
| ||||
public boolean isPackage(char[][] compoundName, char[] packageName) {
return isPackage(new String(CharOperation.concatWith(compoundName, packageName, '/')));
}
public boolean isPackage(String qualifiedPackageName) {
// NOTE: the output folders are added at the beginning of the binaryLocations
for (int i = 0, l = binaryLocations.length; i < l; i++)
if (binaryLocations[i].isPackage(qualifiedPackageName))
return true;
return false;
}
|
| ||||
public boolean isPackage(char[][] compoundName, char[] packageName) {
return isPackage(new String(CharOperation.concatWith(compoundName, packageName, '/')));
}
public boolean isPackage(String qualifiedPackageName) {
for (int i = 0, length = this.locations.length; i < length; i++)
if (this.locations[i].isPackage(qualifiedPackageName))
return true;
return false;
}
|
| |||
public boolean isPackage(char[][] compoundName, char[] packageName) {
return isPackage(new String(CharOperation.concatWith(compoundName, packageName, '/')));
}
public boolean isPackage(String qualifiedPackageName) {
// NOTE: the output folders are added at the beginning of the binaryLocations
for (int i = 0, [[#variableb5807800]]= [[#variableb5807820]].length; i < [[#variableb5807800]]; i++)
if ( [[#variableb5807820]][i].isPackage(qualifiedPackageName))
return true;
return false;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b5807800]] | l |
| 1 | 2 | [[#b5807800]] | length |
| 2 | 1 | [[#b5807820]] | binaryLocations |
| 2 | 2 | [[#b5807820]] | this.locations |