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: 6 | Number of AST nodes: 6 | |||
1 | run_shut.setEnabled(false);↵ | 1 | run_shut.setEnabled(false);↵ | |
2 | run_shut.addActionListener(ActionRouter.getInstance());↵ | 2 | run_shut.addActionListener(ReportActionRouter.getInstance());↵ | |
3 | run_shut.setActionCommand(ActionNames.ACTION_SHUTDOWN);↵ | 3 | run_shut.setActionCommand(ACTION_SHUTDOWN);↵ | |
4 | run_clear = new JMenuItem(JMeterUtils.getResString("clear"), 'C'); //$NON-NLS-1$↵ | 4 | run_clear = new JMenuItem(JMeterUtils.getResString("clear"), 'C');↵ | |
5 | run_clear.addActionListener(ActionRouter.getInstance());↵ | 5 | run_clear.addActionListener(ReportActionRouter.getInstance());↵ | |
6 | run_clear.setActionCommand(ActionNames.CLEAR); | 6 |
| |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 26 |
Number of mapped statements | 6 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14 | run_shut.setEnabled(false); | 14 | run_shut.setEnabled(false); | ||||||||||||
15 | run_shut.addActionListener(ActionRouter.getInstance()); |
| 15 | run_shut.addActionListener(ReportActionRouter.getInstance()); | |||||||||||
16 | run_shut.setActionCommand(ActionNames.ACTION_SHUTDOWN); |
| 16 | run_shut.setActionCommand(ACTION_SHUTDOWN); | |||||||||||
17 | run_clear = new JMenuItem(JMeterUtils.getResString("clear"), 'C'); | 17 | run_clear = new JMenuItem(JMeterUtils.getResString("clear"), 'C'); | ||||||||||||
18 | run_clear.addActionListener(ActionRouter.getInstance()); |
| 18 | run_clear.addActionListener(ReportActionRouter.getInstance()); | |||||||||||
19 | run_clear.setActionCommand(ActionNames.CLEAR); | 19 | run_clear.setActionCommand(ActionNames.CLEAR); |
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() |
2 | 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() |