public class AboutCommand implements ICommand { /** Application API. */ private IApplication _app; /** * Ctor. * * @param app Application API. * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>IApplication</TT> passed. */ public AboutCommand(IApplication app) { super(); if (app == null) { throw new IllegalArgumentException("Null IApplication passed"); } _app = app; } /** * Display the About Box. */ public void execute() { AboutBoxDialog.showAboutBox(_app)
public class ViewLogsCommand implements ICommand { /** Application API. */ private IApplication _app; /** * Ctor. * * @param app Application API. * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>IApplication</TT> passed. */ public ViewLogsCommand(IApplication app) { super(); if (app == null) { throw new IllegalArgumentException("Null IApplication passed"); } _app = app; } /** * Display the Dialog */ public void execute() { ViewLogsSheet.showSheet(_app)
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/AboutCommand.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/ViewLogsCommand.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class AboutCommand implements ICommand
1
public class ViewLogsCommand implements ICommand
2
{
2
{
3
	/** Application API. */
3
	/** Application API. */
4
	private IApplication _app;
4
	private IApplication _app;
5
	/**
5
	/**
6
	 * Ctor.
6
	 * Ctor.
7
	 *
7
	 *
8
	 * @param	app	 Application API.
8
	 * @param	app		Application API.
9
	 *
9
	 *
10
	 * @throws	IllegalArgumentException
10
	 * @throws	IllegalArgumentException
11
	 *			Thrown if a <TT>null</TT> <TT>IApplication</TT> passed.
11
	 *			Thrown if a <TT>null</TT> <TT>IApplication</TT> passed.
12
	 */
12
	 */
13
	public AboutCommand(IApplication app)
13
	public ViewLogsCommand(IApplication app)
14
	{
14
	{
15
		super();
15
		super();
16
		if (app == null)
16
		if (app == null)
17
		{
17
		{
18
			throw new IllegalArgumentException("Null IApplication passed");
18
			throw new IllegalArgumentException("Null IApplication passed");
19
		}
19
		}
20
		_app = app;
20
		_app = app;
21
	}
21
	}
22
	/**
22
	/**
23
	 * Display the About Box.
23
	 * Display the Dialog
24
	 */
24
	 */
25
	public void execute()
25
	public void execute()
26
	{
26
	{
27
		AboutBoxDialog.showAboutBox(_app)
27
		ViewLogsSheet.showSheet(_app)
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