void startDocument() { try { pushElement(null); } catch (Exception e) { e.printStackTrace(); } } public void endDocument() { pluginList.finished(); } // end HandlerBase implementation // private members private String path; private PluginList pluginList; private PluginList.PluginSet pluginSet; private String pluginSetEntry; private PluginList.Plugin plugin; private String jar; private String author; private PluginList.Branch branch; private boolean obsolete; private String version; private String date; private String download; private int downloadSize; private String downloadSource; private int downloadSourceSize; private int size; private String depWhat; private String depFrom; private String depTo; private String depPlugin; private String name; private String description; private Stack stateStack; private String pushElement(String name) { name = (name == null) ? null : name.intern(); stateStack.push(name); return name; } private String peekElement() { return (String) stateStack.peek(); } private String popElement() { return (String) stateStack.pop(); }
void startDocument() { try { pushElement(null); } catch (Exception e) { e.printStackTrace(); } } //}}} //{{{ Private members //{{{ Instance variables private String path; private ActionSet actionSet; private String actionName; private String code; private String isSelected; private boolean noRepeat; private boolean noRecord; private boolean noRememberLast; private Stack stateStack; //}}} //{{{ pushElement() method private String pushElement(String name) { name = (name == null) ? null : name.intern(); stateStack.push(name); return name; } //}}} //{{{ peekElement() method private String peekElement() { return (String) stateStack.peek(); } //}}} //{{{ popElement() method private String popElement() { return (String) stateStack.pop(); }
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/pluginmgr/PluginListHandler.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/ActionListHandler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void startDocument()
1
void startDocument()
2
	{
2
	{
3
		try
3
		try
4
		{
4
		{
5
			pushElement(null);
5
			pushElement(null);
6
		}
6
		}
7
		catch (Exception e)
7
		catch (Exception e)
8
		{
8
		{
9
			e.printStackTrace();
9
			e.printStackTrace();
10
		}
10
		}
11
	}
11
	}
12
	public void endDocument()
13
	{
14
		pluginList.finished();
15
	}
16
	// end HandlerBase implementation
17
	// private members
18
	private String path;
19
	private PluginList pluginList;
20
	private PluginList.PluginSet pluginSet;
21
	private String pluginSetEntry;
22
	private PluginList.Plugin plugin;
23
	private String jar;
24
	private String author;
25
	private PluginList.Branch branch;
26
	private boolean obsolete;
27
	private String version;
28
	private String date;
29
	private String download;
30
	private int downloadSiz
12
 //}}}
13
	//{{{ Private members
14
	//{{{ Instance variables
15
	private String path;
16
	private ActionSet actionSet;
17
	private String actionName;
31
e;
18
	private String code;
32
	private String downloadSource;
19
	private String 
33
	private int downloadSourceSize;
34
	private int size;
35
	private String depWhat;
36
	private String depFrom;
37
	private String depTo;
38
	private String depPlugin;
39
	private String name;
40
	private String description;
41
	private Stack stateStack;
20
isSelected;
21
	private boolean noRepeat;
22
	private boolean noRecord;
23
	private boolean noRememberLast;
24
	private Stack stateStack;
25
	//}}}
26
	//{{{ pushElement() method
42
	private String pushElement(String name)
27
	private String pushElement(String name)
43
	{
28
	{
44
		name = (name == null) ? null : name.intern();
29
		name = (name == null) ? null : name.intern();
45
		stateStack.push(name);
30
		stateStack.push(name);
46
		return name;
31
		return name;
47
	}
32
	}
33
 //}}}
34
	//{{{ peekElement() method
48
	private String peekElement()
35
	private String peekElement()
49
	{
36
	{
50
		return (String) stateStack.peek();
37
		return (String) stateStack.peek();
51
	}
38
	}
39
 //}}}
40
	//{{{ popElement() method
52
	private String popElement()
41
	private String popElement()
53
	{
42
	{
54
		return (String) stateStack.pop();
43
		return (String) stateStack.pop();
55
	}
44
	}
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