Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 0 | 1.000 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 87 | plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitCopyAction.java |
2 | 14 | 112 | 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 trace unfiltered } return stringWriter.toString(); } |
| ||||
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(); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |