Command com = (Command) iter.next(); if (com.getClass().getName().equals(className)) { return com; }
if (config.expectsModification()) { return config; } return (ConfigElement) config.clone();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/ReportActionRouter.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/samplers/Entry.java
Method name: Command getAction(String, String) Method name: ConfigElement cloneIfNecessary(ConfigElement)
Number of AST nodes: 3 Number of AST nodes: 3
1
Command com = (Command) iter.next();
2
				if (com.getClass().getName().equals(className)) {
1
if (config.expectsModification()) {
3
					return com;
2
			return config;
4
				}
3
		}
4
		return (ConfigElement) config.clone();
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.1
Clones locationClones are in different classes
Number of node comparisons1