if (_jdbcDebugOutputStream != null)
{
_jdbcDebugOutputStream.close();
_jdbcDebugOutputStream = null;
}
if (_jdbcDebugOutputWriter != null)
{
_jdbcDebugOutputWriter.close();
_jdbcDebugOutputWriter = null;
}
if (_wrapee != null)
{
_wrapee.printStackTrace();
}
else
{
super.printStackTrace();
}
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/Application.java
|
|
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/BaseRuntimeException.java
|
Method name: void closeOutputStreams()
|
|
Method name: void printStackTrace()
|
Number of AST nodes: 6
|
|
Number of AST nodes: 3
|
|
1 | if (_jdbcDebugOutputStream != null)↵ | | 1 | if (_↵
|
2 | {↵ | | |
|
3 | _jdbcDebugOutputStream.close();↵ | | |
|
4 | _jdbcDebugOutputStream = null;↵ | | |
|
5 | }↵ | | |
|
|
6 | if (_jdbcDebugOutputWriter != null)↵ | | |
|
7 | {↵ | | |
|
8 | _jdbcDebugOutputWriter.close();↵ | | |
|
9 | _jdbcDebugOutputWriter = null↵ | | 2 | wrapee != null)↵
|
| | | 3 | {↵
|
| | | 4 | _wrapee.printStackTrace();↵
|
| | | 5 | }↵
|
| | | 6 | else↵
|
| | | 7 | {↵
|
10 | ;↵ | | 8 | super.printStackTrace();↵
|
11 | } | | 9 | }
|
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.4 |
Clones location | Clones are in different classes |
Number of node comparisons | 2 |