String msg = "Error saving transaction isolation.\n" + "This might happen when reconnecting a Session to restore a broken connection.\n" + "The new connection will use the default transaction isolation."; 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 transaction isolation.\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 transaction isolation.";
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);
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same method
Number of node comparisons0