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 makeFileMenu()
|
Method name: void makeFileMenu()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | file_exit.addActionListener(ActionRouter.getInstance());↵ | 1 | file_exit.addActionListener(ReportActionRouter.getInstance());↵ | |
2 | file_merge = new JMenuItem(JMeterUtils.getResString("menu_merge"), 'M'); //$NON-NLS-1$↵ | 2 | file_merge = new JMenuItem(JMeterUtils.getResString("menu_merge"), 'M');↵ | |
3 | // file_merge.setAccelerator(↵ | 3 | // file_merge.setAccelerator(↵ | |
4 | // KeyStroke.getKeyStroke(KeyEvent.VK_O, KeyEvent.CTRL_MASK));↵ | 4 | // KeyStroke.getKeyStroke(KeyEvent.VK_O, KeyEvent.CTRL_MASK));↵ | |
5 | file_merge.addActionListener(ActionRouter.getInstance());↵ | 5 | file_merge.addActionListener(ReportActionRouter.getInstance());↵ | |
6 | // Set default SAVE menu item to disabled since the default node that↵ | 6 | // Set default SAVE menu item to disabled since the default node that↵ | |
7 | // is selected is ROOT, which does not allow items to be inserted.↵ | 7 | // is selected is ROOT, which does not allow items to be inserted.↵ | |
8 | file_merge.setEnabled(false); | 8 |
| |
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 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33 | file_exit.addActionListener(ActionRouter.getInstance()); |
| 25 | file_exit.addActionListener(ReportActionRouter.getInstance()); | |||||||||||||||||
34 | file_merge = new JMenuItem(JMeterUtils.getResString("menu_merge"), 'M'); | 26 | file_merge = new JMenuItem(JMeterUtils.getResString("menu_merge"), 'M'); | ||||||||||||||||||
35 | file_merge.addActionListener(ActionRouter.getInstance()); |
| 27 | file_merge.addActionListener(ReportActionRouter.getInstance()); | |||||||||||||||||
36 | file_merge.setEnabled(false); | 28 | file_merge.setEnabled(false); |
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 |
3 | Expression ActionRouter.getInstance() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression ReportActionRouter.getInstance() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | 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() |
6 | 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 |