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 |
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 |
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) | 26.4 |
Clone type | Type 2 |
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()); |
Row | Violation |
---|---|
1 | Expression ActionRouter cannot be unified with expression ReportActionRouter , because common superclass java.awt.event.ActionListener does not declare member(s) public static org.apache.jmeter.gui.action.ActionRouter getInstance() , public static org.apache.jmeter.report.gui.action.ReportActionRouter getInstance() |