File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDouble.java | File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeFloat.java | |||
Method name: void exportObject(FileOutputStream, String)
|
Method name: void exportObject(FileOutputStream, String)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | OutputStreamWriter outWriter = new OutputStreamWriter(outStream);↵ | 1 | OutputStreamWriter outWriter = new OutputStreamWriter(outStream);↵ | |
2 | // check that the text is a valid representation↵ | 2 | // check that the text is a valid representation↵ | |
3 | StringBuffer messageBuffer = new StringBuffer();↵ | 3 | StringBuffer messageBuffer = new StringBuffer();↵ | |
4 | validateAndConvertInPopup(text, null, messageBuffer);↵ | 4 | validateAndConvertInPopup(text, null, messageBuffer);↵ | |
5 | if (messageBuffer.length() > 0) {↵ | 5 | if (messageBuffer.length() > 0) {↵ | |
6 | // there was an error in the conversion↵ | 6 | // there was an error in the conversion↵ | |
7 | throw new IOException(new String(messageBuffer));↵ | 7 | throw new IOException(new String(messageBuffer));↵ | |
8 | }↵ | 8 | }↵ | |
9 | // just send the text to the output file↵ | 9 | // just send the text to the output file↵ | |
10 | outWriter.write(text);↵ | 10 | outWriter.write(text);↵ | |
11 | outWriter.flush();↵ | 11 | outWriter.flush();↵ | |
12 | outWriter.close(); | 12 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 23 |
Number of mapped statements | 8 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 11.2 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | OutputStreamWriter outWriter = new OutputStreamWriter(outStream); | 1 | OutputStreamWriter outWriter = new OutputStreamWriter(outStream); | |
2 | StringBuffer messageBuffer = new StringBuffer(); | 2 | StringBuffer messageBuffer = new StringBuffer(); | |
3 | validateAndConvertInPopup(text, null, messageBuffer); | 3 | validateAndConvertInPopup(text, null, messageBuffer); | |
4 | if (messageBuffer.length() > 0) | 4 | if (messageBuffer.length() > 0) | |
5 | throw new IOException(new String(messageBuffer)); | 5 | throw new IOException(new String(messageBuffer)); | |
6 | outWriter.write(text); | 6 | outWriter.write(text); | |
7 | outWriter.flush(); | 7 | outWriter.flush(); | |
8 | outWriter.close(); | 8 | outWriter.close(); |
Row | Violation |
---|