public static Tidy getParser() { log.debug("Start : getParser1"); Tidy tidy = new Tidy(); tidy.setCharEncoding(org.w3c.tidy.Configuration.UTF8); tidy.setQuiet(true); tidy.setShowWarnings(false); if (log.isDebugEnabled()) { log.debug("getParser1 : tidy parser created - " + tidy); } log.debug("End : getParser1"); return tidy;
private static Tidy getTidyParser() { log.debug("Start : getParser"); Tidy tidy = new Tidy(); tidy.setCharEncoding(org.w3c.tidy.Configuration.UTF8); tidy.setQuiet(true); tidy.setShowWarnings(false); if (log.isDebugEnabled()) { log.debug("getParser : tidy parser created - " + tidy); } log.debug("End : getParser"); return tidy;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/parser/HtmlParsingUtils.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/parser/JTidyHTMLParser.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public static Tidy getParser() {
1
private static Tidy getTidyParser() {
2
		log.debug("Start : getParser1");
2
		log.debug("Start : getParser");
3
		Tidy tidy = new Tidy();
3
		Tidy tidy = new Tidy();
4
		tidy.setCharEncoding(org.w3c.tidy.Configuration.UTF8);
4
		tidy.setCharEncoding(org.w3c.tidy.Configuration.UTF8);
5
		tidy.setQuiet(true);
5
		tidy.setQuiet(true);
6
		tidy.setShowWarnings(false);
6
		tidy.setShowWarnings(false);
7
		if (log.isDebugEnabled()) {
7
		if (log.isDebugEnabled()) {
8
			log.debug("getParser1 : tidy parser created - " + tidy);
8
			log.debug("getParser : tidy parser created - " + tidy);
9
		}
9
		}
10
		log.debug("End : getParser1");
10
		log.debug("End   : getParser");
11
		return tidy;
11
		return tidy;
12
	
12
	
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