public class HtmlViewerPanelListenerEvent extends EventObject { /** The <CODE>HtmlViewerPanel</CODE> involved. */ private HtmlViewerPanel _pnl; /** * Ctor. * * @param source The <CODE>HtmlViewerPanel</CODE> that change has * happened to. * * @throws IllegalArgumentException * Thrown if <TT>null</TT>HtmlViewerPanel/TT> passed. */ HtmlViewerPanelListenerEvent(HtmlViewerPanel source) { super(checkParams(source)); _pnl = source; } /** * Return the <CODE>HtmlViewerPanel</CODE>. */ public HtmlViewerPanel getHtmlViewerPanel() { return _pnl; } private static HtmlViewerPanel checkParams(HtmlViewerPanel source) { if (source == null) { throw new IllegalArgumentException("HtmlViewerPanel == null"); } return source
public class ObjectTreeListenerEvent extends EventObject { /** The <CODE>ObjectTree</CODE> involved. */ private ObjectTree _tree; /** * Ctor. * * @param source The <CODE>ObjectTree</CODE> that change has happened to. * * @throws IllegalArgumentException * Thrown if <TT>null</TT>ObjectTree/TT> passed. */ ObjectTreeListenerEvent(ObjectTree source) { super(checkParams(source)); _tree = source; } /** * Return the <CODE>ObjectTree</CODE>. */ public ObjectTree getObjectTree() { return _tree; } private static ObjectTree checkParams(ObjectTree source) { if (source == null) { throw new IllegalArgumentException("ObjectTree == null"); } return source
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/HtmlViewerPanelListenerEvent.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/objecttree/ObjectTreeListenerEvent.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class HtmlViewerPanelListenerEvent extends EventObject
1
public class ObjectTreeListenerEvent extends EventObject
2
{
2
{
3
	/** The <CODE>HtmlViewerPanel</CODE> involved. */
3
	/** The <CODE>ObjectTree</CODE> involved. */
4
	private HtmlViewerPanel _pnl;
4
	private ObjectTree _tree;
5

5
	/**
6
	/**
6
	 * Ctor.
7
	 * Ctor.
7
	 *
8
	 *
8
	 * @param	source	The <CODE>HtmlViewerPanel</CODE> that change has
9
	 * @param	source	The <CODE>ObjectTree</CODE> that change has
9
	 *					happened to.
10
 happened to.
10
	 * 
11
	 * 
11
	 * @throws	IllegalArgumentException
12
	 * @throws	IllegalArgumentException
12
	 * 			Thrown if <TT>null</TT>HtmlViewerPanel/TT> passed.
13
	 * 			Thrown if <TT>null</TT>ObjectTree/TT> passed.
13
	 */
14
	 */
14
	HtmlViewerPanelListenerEvent(HtmlViewerPanel source)
15
	ObjectTreeListenerEvent(ObjectTree source)
15
	{
16
	{
16
		super(checkParams(source));
17
		super(checkParams(source));
17
		_pnl = source;
18
		_tree = source;
18
	}
19
	}
20

19
	/**
21
	/**
20
	 * Return the <CODE>HtmlViewerPanel</CODE>.
22
	 * Return the <CODE>ObjectTree</CODE>.
21
	 */
23
	 */
22
	public HtmlViewerPanel getHtmlViewerPanel()
24
	public ObjectTree getObjectTree()
23
	{
25
	{
24
		return _pnl;
26
		return _
25
	}
27
tree;
28
	}
29

26
	private static HtmlViewerPanel checkParams(HtmlViewerPanel source)
30
	private static ObjectTree checkParams(ObjectTree source)
27
	{
31
	{
28
		if (source == null)
32
		if (source == null)
29
		{
33
		{
30
			throw new IllegalArgumentException("HtmlViewerPanel == null");
34
			throw new IllegalArgumentException("ObjectTree == null");
31
		}
35
		}
32
		return source
36
		return source
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