CloneSet1804


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11487
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitCopyAction.java
214112
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CopyCallHierarchyAction.java
Clone Instance
1
Line Count
14
Source Line
87
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitCopyAction.java

        private String convertLineTerminators(String in) {
                StringWriter stringWriter = new StringWriter();
                PrintWriter printWriter = new PrintWriter(stringWriter);
                StringReader stringReader = new StringReader(in);
                BufferedReader bufferedReader = new BufferedReader(stringReader);
                String line;
                try {
                        while ((line = bufferedReader.readLine()) != null) {
                                printWriter.println(line);
                        }
                } catch (IOException e) {
                        return in; // return the trace unfiltered
                  }
                return stringWriter.toString();
        }


Clone Instance
2
Line Count
14
Source Line
112
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CopyCallHierarchyAction.java

    private String convertLineTerminators(String in) {
                StringWriter stringWriter = new StringWriter();
                PrintWriter printWriter = new PrintWriter(stringWriter);
                StringReader stringReader = new StringReader(in);
                BufferedReader bufferedReader = new BufferedReader(stringReader);
                String line;
                try {
                        while ((line = bufferedReader.readLine()) != null) {
                                printWriter.println(line);
                        }
                } catch (IOException e) {
                        return in; // return the call hierarchy unfiltered
                  }
                return stringWriter.toString();
    }


Clone AbstractionParameter Count: 0Parameter Bindings

private String convertLineTerminators(String in) {
  StringWriter stringWriter = new StringWriter();
  PrintWriter printWriter = new PrintWriter(stringWriter);
  StringReader stringReader = new StringReader(in);
  BufferedReader bufferedReader = new BufferedReader(stringReader);
  String line;
  try {
    while ((line = bufferedReader.readLine()) != null) {
      printWriter.println(line);
    }
  }
  catch (IOException e) {
    return in; // return the call hierarchy unfiltered // return the trace unfiltered
  }
  return stringWriter.toString();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None