File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/ReportMenuBar.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/JMeterMenuBar.java | |||
Method name: void makeRunMenu()
|
Method name: void makeRunMenu()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | run_stop.setEnabled(false);↵ | 1 | run_stop.setEnabled(false);↵ | |
2 | run_stop.addActionListener(ReportActionRouter.getInstance());↵ | 2 | run_stop.addActionListener(ActionRouter.getInstance());↵ | |
3 | run_stop.setActionCommand(ACTION_STOP);↵ | 3 | run_stop.setActionCommand(ActionNames.ACTION_STOP);↵ | |
4 | run_shut = new JMenuItem(JMeterUtils.getResString("shutdown"), 'Y'); | 4 |
| |
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 | 10 |
Number of mapped statements | 4 |
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 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9 | run_stop.setEnabled(false); | 9 | run_stop.setEnabled(false); | ||||||||||||||||
10 | run_stop.addActionListener(ReportActionRouter.getInstance()); |
| 10 | run_stop.addActionListener(ActionRouter.getInstance()); | |||||||||||||||
11 | run_stop.setActionCommand(ACTION_STOP); |
| 11 | run_stop.setActionCommand(ActionNames.ACTION_STOP); | |||||||||||||||
12 | run_shut = new JMenuItem(JMeterUtils.getResString("shutdown"), 'Y'); | 12 | run_shut = new JMenuItem(JMeterUtils.getResString("shutdown"), 'Y'); |
Row | Violation |
---|---|
1 | Type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter.getInstance() does not match with type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter.getInstance() |
2 | Type org.apache.jmeter.report.gui.action.ReportActionRouter of variable ReportActionRouter does not match with type org.apache.jmeter.gui.action.ActionRouter of variable ActionRouter |