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/report/gui/action/ReportActionRouter.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 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.4 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 1 |