public class CloseAllSQLResultTabsCommand implements ICommand { private final ISQLPanelAPI _api; /** * Ctor. * * @param api * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed. */ public CloseAllSQLResultTabsCommand(ISQLPanelAPI api) { super(); if (api == null) { throw new IllegalArgumentException("ISQLPanelAPI == null"); } _api = api; } public void execute() { _api.closeAllSQLResultTabs()
public class CommitCommand implements ICommand { /** Current session. */ private ISession _session; /** * Ctor. * * @param session Current session. * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>ISession</TT> passed. */ public CommitCommand(ISession session) { super(); if (session == null) { throw new IllegalArgumentException("Null ISession passed"); } _session = session; } /** * Commit the transaction. */ public void execute() { _session.commit()
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultTabsCommand.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/CommitCommand.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class CloseAllSQLResultTabsCommand implements ICommand
1
public class CommitCommand implements ICommand
2
{
2
{
3
	private final ISQLPanelAPI _api
3
	/** Current session. */
4
;
4
	private ISession _session;
5
	/**
5
	/**
6
	 * Ctor.
6
	 * Ctor.
7
	 *
7
	 *
8
	 * @param	api
8
	 * @param	session		Current session.
9
	 *
9
	 *
10
	 * @throws	IllegalArgumentException
10
	 * @throws	IllegalArgumentException
11
	 *			Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.
11
	 *			Thrown if a <TT>null</TT> <TT>ISession</TT> passed.
12
	 */
12
	 */
13
	public CloseAllSQLResultTabsCommand(ISQLPanelAPI api)
13
	public CommitCommand(ISession session)
14
	{
14
	{
15
		super();
15
		super();
16
		if (api == null)
16
		if (session == null)
17
		{
17
		{
18
			throw new IllegalArgumentException("ISQLPanelAPI == null");
18
			throw new IllegalArgumentException("Null ISession passed");
19
		}
19
		}
20
		_api = api;
20
		_
21
	}
21
session = session;
22
	}
23
	/**
24
	 * Commit the transaction.
25
	 */
22
	public void execute()
26
	public void execute()
23
	{
27
	{
24
		_api.closeAllSQLResultTabs()
28
		_session.commit()
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 location
Number of node comparisons0