if (component instanceof JMenu) {
((JMenu) component).setText(JMeterUtils.getResString(component.getName()));
} else {
((JMenuItem) component).setText(JMeterUtils.getResString(component.getName()));
}
if (listener instanceof TestElement) {
listener.testIterationStart(new LoopIterationEvent(controller, threadVars.getIteration()));
((TestElement) listener).recoverRunningVersion();
} else {
listener.testIterationStart(new LoopIterationEvent(controller, threadVars.getIteration()));
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/JMeterMenuBar.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/threads/JMeterThread.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (component instanceof JMenu) {↵ | | 1 | if (listener instanceof TestElement) {↵
|
2 | ((JMenu) component).setText(JMeterUtils.getResString(component.getName()));↵ | | 2 | listener.testIterationStart(new LoopIterati↵
|
3 | } else {↵ | | |
|
4 | ((JMenuItem) component).setText(JMe↵ | | 3 | onEvent(controller, threadVars.getIteration()));↵
|
| | | 4 | ((TestElement) listener).recoverRunningVersion();↵
|
| | | 5 | } else {↵
|
5 | terUtils.getResString(component.getName()));↵ | | 6 | listener.testIterationStart(new LoopIterationEvent(controller, threadVars.getIteration()));↵
|
6 | } | | 7 | }
|
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.0 |
Clones location | |
Number of node comparisons | 0 |