| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 17 | 2 | 4 | 0.983 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 17 | 331 | plugins/org.eclipse.jdt.junit.runtime/src/org/eclipse/jdt/internal/junit/runner/RemoteTestRunner.java |
| 2 | 17 | 352 | plugins/org.eclipse.jdt.junit.runtime/src/org/eclipse/jdt/internal/junit/runner/RemoteTestRunner.java |
| ||||
private void readTestNames(String testNameFile) throws IOException {
BufferedReader br = new BufferedReader(new FileReader(new File(testNameFile)));
try {
String line;
Vector list = new Vector();
while ((line = br.readLine()) != null) {
list.add(line);
}
fTestClassNames = (String[]) list.toArray(new String[list.size()]);
}
finally {
br.close();
}
if (fDebugMode) {
System.out.println("Tests:"); //$NON-NLS-1$
for (int i = 0; i < fTestClassNames.length; i++) {
System.out.println(" " + fTestClassNames[i]); //$NON-NLS-1$
}
}
}
|
| ||||
private void readFailureNames(String testFailureFile) throws IOException {
BufferedReader br = new BufferedReader(new FileReader(new File(testFailureFile)));
try {
String line;
Vector list = new Vector();
while ((line = br.readLine()) != null) {
list.add(line);
}
fFailureNames = (String[]) list.toArray(new String[list.size()]);
}
finally {
br.close();
}
if (fDebugMode) {
System.out.println("Failures:"); //$NON-NLS-1$
for (int i = 0; i < fFailureNames.length; i++) {
System.out.println(" " + fFailureNames[i]); //$NON-NLS-1$
}
}
}
|
| |||
private void [[#variable59d20d60]](String [[#variable598882a0]]) throws IOException {
BufferedReader br = new BufferedReader(new FileReader(new File( [[#variable598882a0]])));
try {
String line;
Vector list = new Vector();
while ((line = br.readLine()) != null) {
list.add(line);
}
[[#variable59d204a0]]= (String[]) list.toArray(new String[list.size()]);
}
finally {
br.close();
}
if (fDebugMode) {
System.out.println( [[#variable59d204e0]]); //$NON-NLS-1$
for (int i = 0; i < [[#variable59d204a0]].length; i++) {
System.out.println(" " + [[#variable59d204a0]][i]); //$NON-NLS-1$
}
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#59d20d60]] | readTestNames |
| 1 | 2 | [[#59d20d60]] | readFailureNames |
| 2 | 1 | [[#598882a0]] | testNameFile |
| 2 | 2 | [[#598882a0]] | testFailureFile |
| 3 | 1 | [[#59d204a0]] | fTestClassNames |
| 3 | 2 | [[#59d204a0]] | fFailureNames |
| 4 | 1 | [[#59d204e0]] | "Tests:" |
| 4 | 2 | [[#59d204e0]] | "Failures:" |