s_log.error("Error restoring current catalog", ex); if (msgHandler == null) { throw ex; } msgHandler.showErrorMessage(ex, null);
s_log.error("Error restoring transaction isolation", ex); if (msgHandler == null) { throw ex; } msgHandler.showErrorMessage(ex, null);
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 restoreState(ISQLConnection, IMessageHandler) Method name: void restoreState(ISQLConnection, IMessageHandler)
Number of AST nodes: 4 Number of AST nodes: 4
1
s_log.error("Error restoring current catalog", ex);
1
s_log.error("Error restoring transaction isolation", ex);
2
				if (msgHandler == null)
2
				if (msgHandler == null)
3
				{
3
				{
4
					throw ex;
4
					throw ex;
5
				}
5
				}
6
				msgHandler.showErrorMessage(ex, null);
6
				msgHandler.showErrorMessage(ex, null);
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