Command com = (Command) iter.next(); if (com.getClass().equals(actionClass)) { return com; }
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/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, Class)
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().equals(actionClass)) {
3
					return com;
3
					return com;
4
				}
4
				}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.3
Clones locationClones are in different classes
Number of node comparisons7
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)10.9
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    5
    Command com = (Command)iter.next();
    5
    Command com = (Command)iter.next();
    6
    if (com.getClass().equals(actionClass))
    6
    if (com.getClass().equals(actionClass))
    7
    return com;
    7
    return com;
    Precondition Violations (1)
    Row Violation
    1Not all possible execution flows end in a return statement