CloneSet1049


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17240.983class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117331
plugins/org.eclipse.jdt.junit.runtime/src/org/eclipse/jdt/internal/junit/runner/RemoteTestRunner.java
217352
plugins/org.eclipse.jdt.junit.runtime/src/org/eclipse/jdt/internal/junit/runner/RemoteTestRunner.java
Clone Instance
1
Line Count
17
Source Line
331
Source File
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$
                        }
                }
        }


Clone Instance
2
Line Count
17
Source Line
352
Source File
plugins/org.eclipse.jdt.junit.runtime/src/org/eclipse/jdt/internal/junit/runner/RemoteTestRunner.java

        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$
                        }
                }
        }


Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#59d20d60]]
readTestNames 
12[[#59d20d60]]
readFailureNames 
21[[#598882a0]]
testNameFile 
22[[#598882a0]]
testFailureFile 
31[[#59d204a0]]
fTestClassNames 
32[[#59d204a0]]
fFailureNames 
41[[#59d204e0]]
"Tests:" 
42[[#59d204e0]]
"Failures:"