runMenu.add(remote_stop_all);
if (remote_exit != null) {
runMenu.add(remote_exit);
}
remote_exit_all = new JMenuItem(JMeterUtils.getResString("remote_exit_all")); //$NON-NLS-1$
remote_exit_all.addActionListener(ActionRouter.getInstance());
runMenu.add(remote_stop_all);
if (remote_exit != null) {
runMenu.add(remote_exit);
}
remote_exit_all = new JMenuItem(JMeterUtils.getResString("remote_exit_all"));
remote_exit_all.addActionListener(ReportActionRouter.getInstance());
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/gui/util/ReportMenuBar.java
|
Method name: void makeRunMenu()
|
|
Method name: void makeRunMenu()
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | runMenu.add(remote_stop_all);↵ | | 1 | runMenu.add(remote_stop_all);↵
|
|
2 | if (remote_exit != null) {↵ | | 2 | if (remote_exit != null) {↵
|
3 | runMenu.add(remote_exit);↵ | | 3 | runMenu.add(remote_exit);↵
|
4 | }↵ | | 4 | }↵
|
5 | remote_exit_all = new JMenuItem(JMeterUtils.getResString("remote_exit_all")); //$NON-NLS-1$↵ | | 5 | remote_exit_all = new JMenuItem(JMeterUtils.getResString("remote_exit_all"));↵
|
6 | remote_exit_all.addActionListener(ActionRouter.getInstance()); | | 6 | remote_exit_all.addActionListener(ReportActionRouter.getInstance());
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 9 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 3.9 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
42 | runMenu.add(remote_stop_all); | | 41 | runMenu.add(remote_stop_all); |
43 | if (remote_exit != null) | | 42 | if (remote_exit != null) |
44 | runMenu.add(remote_exit); | | 43 | runMenu.add(remote_exit); |
45 | remote_exit_all = new JMenuItem(JMeterUtils.getResString("remote_exit_all")); | | 44 | remote_exit_all = new JMenuItem(JMeterUtils.getResString("remote_exit_all")); |
46 | remote_exit_all.addActionListener(ActionRouter.getInstance()); | | 45 | remote_exit_all.addActionListener(ReportActionRouter.getInstance()); |
Precondition Violations (2)
Row |
Violation |
1 | Type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter.getInstance() does not match with type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter.getInstance() |
2 | Type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter does not match with type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter |