if (config.expectsModification()) { return config; } return (ConfigElement) config.clone();
Command com = (Command) iter.next(); if (com.getClass().equals(actionClass)) { return com; }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/samplers/Entry.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/action/ActionRouter.java
Method name: ConfigElement cloneIfNecessary(ConfigElement) Method name: Command getAction(String, Class)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (config.expectsModification(
1
Command com = (Command) iter.next();
2
)) {
2
				if (com.getClass().equals(actionClass)) {
3
			return config;
3
					return com;
4
		}
4
		
5
		return (ConfigElement) config.clone();
5
		}
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