Command com = (Command) iter.next(); if (com.getClass().equals(actionClass)) { return com; }
Command com = (Command) iter.next(); if (com.getClass().getName().equals(className)) { return com; }
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/gui/action/ActionRouter.java
Method name: Command getAction(String, Class) Method name: Command getAction(String, String)
Number of AST nodes: 3 Number of AST nodes: 3
1
Command com = (Command) iter.next();
1
Command com = (Command) iter.next();
2
				if (com.getClass().equals(actionClass)) {
2
				if (com.getClass().getName().equals(className)) {
3
					return com;
3
					return com;
4
				}
4
				}
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.2
Clones locationClones are in different classes
Number of node comparisons1