if (outWriter != null) {
try {
outWriter.close();
} catch (IOException e) {
s_log.error("exportObject: Unexpected exception: "+e, e);
}
}
try
{
stmt.close();
}
catch (SQLException ex)
{ /* Do Nothing */
}
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/BaseDataTypeComponent.java
|
|
File path: /sql12/plugins/dbdiff/src/net/sourceforge/squirrel_sql/plugins/dbdiff/util/DBUtil.java
|
Method name: void exportObject(FileOutputStream, String)
|
|
Method name: ResultSet executeQuery(ISession, String)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 2
|
|
1 | if (outWriter != null) {↵ | | |
|
2 | try {↵ | | |
|
3 | outWriter.close();↵ | | |
|
4 | } ↵ | | 1 | try↵
|
| | | 2 | {↵
|
| | | 3 | stmt.close();↵
|
| | | 4 | }↵
|
5 | catch (IOException e) {↵ | | 5 | catch (SQLException e↵
|
6 | s_log.error("exportObject: Unexpected exception: "+e, e);↵ | | |
|
7 | }↵ | | |
|
8 | ↵ | | 6 | x)↵
|
| | | 7 | { /* Do Nothing */↵
|
9 | } | | 8 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 0 |