try { //new InQuotesCommand(_session.getSQLPanelAPI(_plugin)).execute(); new InQuotesCommand(FrameWorkAcessor.getSQLPanelAPI(_session, _plugin)).execute(); } catch (Throwable ex) { // i18n[editextras.errorQuoteSql=Error processing Quote SQL command: {0}] final String msg = s_stringMgr.getString("editextras.errorQuoteSql", ex); _session.showErrorMessage(msg); s_log.error(msg, ex); }
if (Dialogs.showYesNo(_session.getSessionSheet(), MSG, TITLE)) { try { new DropDatabaseCommand(_session, _plugin, dbs).execute(); treeAPI.removeNodes(nodes); } catch (Throwable th) { _session.showErrorMessage(th); } }
Clone fragments detected by clone detection tool
File path: /sql12/plugins/editextras/src/net/sourceforge/squirrel_sql/plugins/editextras/InQuotesAction.java File path: /sql12/plugins/mysql/src/net/sourceforge/squirrel_sql/plugins/mysql/action/DropDatabaseAction.java
Method name: void actionPerformed(ActionEvent) Method name: void actionPerformed(ActionEvent)
Number of AST nodes: 2 Number of AST nodes: 4
1
try
2
			{
3
				//new InQuotesCommand(_session.getSQLPanelAPI(_plugin)).execute();
1
if (Dialogs.showYesNo(_session.getSessionSheet(), MSG, TITLE))
2
				{
3
					try
4
					{
4
				new InQuotesCommand(FrameWorkAcessor.getSQLPanelAPI(_session, _plugin)).execute();
5
						new DropDatabaseCommand(_session, _plugin, dbs).execute();
5
			}
6
			
6
			catch (Throwable ex)
7
			
7
			{
8
				// i18n[editextras.errorQuoteSql=Error processing Quote SQL command: {0}]
9
				final String msg = s_stringMgr.getString("editextras.errorQuoteSql", ex);
8
treeAPI.removeNodes(nodes);
9
					}
10
					catch (Throwable th)
11
					{
10
				_session.showErrorMessage(msg);
12
						_session.showErrorMessage(th);
11
				s_log.error(msg, ex);
13
				
14
	}
12
			}
15
				}
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.1
Clones locationClones are in different classes having the same super class
Number of node comparisons1