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();
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();
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/ActionListHandler.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/pluginmgr/MirrorListHandler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
private String pushElement(String name)
1
private String pushElement(String name)
2
	{
2
	{
3
		name = (name == null) ? null : name.intern();
3
		name = (name == null) ? null : name.intern();
4
		stateStack.push(name);
4
		stateStack.push(name);
5
		return name;
5
		return name;
6
	} //}}}
6
	}
7
	//{{{ peekElement() method
8
	private String peekElement()
7
	private String peekElement()
9
	{
8
	{
10
		return (String) stateStack.peek();
9
		return (String) stateStack.peek();
11
	} //}}}
10
	}
12
	//{{{ popElement() method
13
	private String popElement()
11
	private String popElement()
14
	{
12
	{
15
		return (String) stateStack.pop();
13
		return (String) stateStack.pop();
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