try { Command com = (Command) iter.next(); if (com.getClass().equals(actionClass)) { return com; } } catch (Exception err) { log.error("", err); }
try { Command com = (Command) iter.next(); if (com.getClass().getName().equals(className)) { return com; } } catch (Exception err) { log.error("", err); }
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/report/gui/action/ReportActionRouter.java
Method name: Command getAction(String, Class) Method name: Command getAction(String, String)
Number of AST nodes: 4 Number of AST nodes: 4
1
try {
1
try {
2
				Command com = (Command) iter.next();
2
				Command com = (Command) iter.next();
3
				if (com.getClass().equals(actionClass)) {
3
				if (com.getClass().getName().equals(className)) {
4
					return com;
4
					return com;
5
				}
5
				}
6
			} catch (Exception err) {
6
			} catch (Exception err) {
7
				log.error("", err);
7
				log.error("", err);
8
			}
8
			}
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 declared in the same class
Number of node comparisons1