String msg =
"Error saving current catalog.\n" +
"This might happen when reconnecting a Session to restore a broken connection.\n" +
"The new connection will use the default catalog.";
s_log.error(msg, ex);
if (msgHandler == null)
{
throw ex;
}
msgHandler.showErrorMessage(msg);
String msg =
"Error saving autocommit state.\n" +
"This might happen when reconnecting a Session to restore a broken connection.\n" +
"The new connection will use the autocommit state.";
s_log.error(msg, ex);
if (msgHandler == null)
{
throw ex;
}
msgHandler.showErrorMessage(msg);
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/SQLConnectionState.java
|
|
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/SQLConnectionState.java
|
Method name: void saveState(ISQLConnection, ISessionProperties, IMessageHandler)
|
|
Method name: void saveState(ISQLConnection, ISessionProperties, IMessageHandler)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | String msg =↵ | | 1 | String msg =↵
|
2 | "Error saving current catalog.\n" +↵ | | 2 | "Error saving autocommit state.\n" +↵
|
3 | "This might happen when reconnecting a Session to restore a broken connection.\n" +↵ | | 3 | "This might happen when reconnecting a Session to restore a broken connection.\n" +↵
|
4 | "The new connection will use the default catalog.";↵ | | 4 | "The new connection will use the autocommit state.";↵
|
|
|
5 | s_log.error(msg, ex);↵ | | 5 | s_log.error(msg, ex);↵
|
6 | if (msgHandler == null)↵ | | 6 | if (msgHandler == null)↵
|
7 | {↵ | | 7 | {↵
|
8 | throw ex;↵ | | 8 | throw ex;↵
|
9 | }↵ | | 9 | }↵
|
10 | msgHandler.showErrorMessage(msg); | | 10 | msgHandler.showErrorMessage(msg);
|
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 the same method |
Number of node comparisons | 0 |