File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeByte.java | File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBigDecimal.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 | ↵ | |||
3 | // check that the text is a valid representation↵ | 2 | // check that the text is a valid representation↵ | |
4 | StringBuffer messageBuffer = new StringBuffer();↵ | 3 | StringBuffer messageBuffer = new StringBuffer();↵ | |
5 | validateAndConvertInPopup(text, null, messageBuffer);↵ | 4 | validateAndConvertInPopup(text, null, messageBuffer);↵ | |
6 | if (messageBuffer.length() > 0) {↵ | 5 | if (messageBuffer.length() > 0) {↵ | |
7 | // there was an error in the conversion↵ | 6 | // there was an error in the conversion↵ | |
8 | throw new IOException(new String(messageBuffer));↵ | 7 | throw new IOException(new String(messageBuffer));↵ | |
9 | }↵ | 8 | ↵ | |
10 | ↵ | |||
9 | }↵ | |||
11 | // just send the text to the output file↵ | 10 | // just send the text to the output file↵ | |
12 | outWriter.write(text);↵ | 11 | outWriter.write(text);↵ | |
13 | outWriter.flush();↵ | 12 | outWriter.flush();↵ | |
14 | outWriter.close(); | 13 |
| |
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) | 10.9 |
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 |
---|