void doctypeDecl(String name, String publicId, String systemId) throws Exception { if("SERVICES".equals(name)) return; Log.log(Log.ERROR,this,uri + ": DOCTYPE must be SERVICES"); } //}}} //{{{ charData() method public void charData(char[] c, int off, int len) { String tag = peekElement(); String text = new String(c, off, len); if (tag == "SERVICE") { code = text; } } //}}} //{{{ startElement() method public void startElement(String tag) { tag = pushElement(tag); }
void doctypeDecl(String name, String publicId, String systemId) throws Exception { if("DOCKABLES".equals(name)) return; Log.log(Log.ERROR,this,uri + ": DOCTYPE must be DOCKABLES"); } //}}} //{{{ charData() method public void charData(char[] c, int off, int len) { String tag = peekElement(); String text = new String(c, off, len); if (tag == "DOCKABLE") { code = text; } } //}}} //{{{ startElement() method public void startElement(String tag) { tag = pushElement(tag); }
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/ServiceListHandler.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/DockableWindowManager.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void doctypeDecl(String name, String publicId,
1
void doctypeDecl(String name, String publicId,
2
		String systemId) throws Exception
2
			String systemId) throws Exception
3
	{
3
		{
4
		if("SERVICES".equals(name))
4
			if("DOCKABLES".equals(name))
5
			return;
5
				return;
6
		Log.log(Log.ERROR,this,uri + ": DOCTYPE must be SERVICES");
6
			Log.log(Log.ERROR,this,uri + ": DOCTYPE must be DOCKABLES");
7
	} //}}}
7
		} //}}}
8
	//{{{ charData() method
8
		//{{{ charData() method
9
	public void charData(char[] c, int off, int len)
9
		public void charData(char[] c, int off, int len)
10
	{
10
		{
11
		String tag = peekElement();
11
			String tag = peekElement();
12
		String text = new String(c, off, len);
12
			String text = new String(c, off, len);
13
		if (tag == "SERVICE")
13
			if (tag == "DOCKABLE")
14
		{
14
			{
15
			code = text;
15
				code = text;
16
		}
16
			}
17
	} //}}}
17
		} //}}}
18
	//{{{ startElement() method
18
		//{{{ startElement() method
19
	public void startElement(String tag)
19
		public void startElement(String tag)
20
	{
20
		{
21
		tag = pushElement(tag);
21
			tag = pushElement(tag);
22
	}
22
		}
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