void startDocument() { try { pushElement(null); } catch (Exception e) { e.printStackTrace(); } } //}}} //{{{ endDocument() method public void endDocument() { mirrors.finished(); } //}}} //{{{ Private members //{{{ Variables private String id; private String description; private String location; private String country; private String continent; private MirrorList mirrors; private MirrorList.Mirror mirror; private Stack stateStack; private String path; //}}} 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/MirrorListHandler.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
	//{{{ endDocument() method
13
	public void endDocument()
14
	{
15
		mirrors.finished();
16
	} //}}}
17
	//{{{ Private members
12
	//{{{ Private members
18
	
19
	//{{{ Variables
13
	//{{{ Instance variables
20
	private String id;
14
	private String path;
21
	private String description;
15
	private ActionSet actionSet;
22
	private String location;
16
	private String actionName;
23
	private String country;
17
	private String code;
24
	private String continent;
18
	private String isSelected;
25
	
26
	private MirrorList mirr
19
	private boolean noRepeat;
27
ors;
20
	private boolean noRecord;
28
	private MirrorList.Mirror mirror;
21
	private boolean noRememberLast;
29
	
30
	private Stack stateStack;
22
	private Stack stateStack;
31
	private String path;
23
	
32
	//}}}
33
	
24
//}}}
25
	//{{{ pushElement() method
34
	private String pushElement(String name)
26
	private String pushElement(String name)
35
	{
27
	{
36
		name = (name == null) ? null : name.intern();
28
		name = (name == null) ? null : name.intern();
37
		stateStack.push(name);
29
		stateStack.push(name);
38
		return name;
30
		return name;
39
	}
31
	}
32
 //}}}
33
	//{{{ peekElement() method
40
	private String peekElement()
34
	private String peekElement()
41
	{
35
	{
42
		return (String) stateStack.peek();
36
		return (String) stateStack.peek();
43
	}
37
	}
38
 //}}}
39
	//{{{ popElement() method
44
	private String popElement()
40
	private String popElement()
45
	{
41
	{
46
		return (String) stateStack.pop();
42
		return (String) stateStack.pop();
47
	}
43
	}
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