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/ReportMenuBar.java | |||
Method name: void makeRunMenu()
|
Method name: void makeRunMenu()
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | run_start.addActionListener(ReportActionRouter.getInstance());↵ | 1 | run_stop.addActionListener(ReportActionRouter.getInstance());↵ | |
2 | run_start.setActionCommand(ACTION_START);↵ | 2 | run_stop.setActionCommand(ACTION_STOP);↵ | |
3 | run_stop = new JMenuItem(JMeterUtils.getResString("stop"), 'T');↵ | 3 | run_shut = new JMenuItem(JMeterUtils.getResString("shutdown"), 'Y');↵ | |
4 | run_stop.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_PERIOD, KeyEvent.CTRL_MASK));↵ | 4 | run_shut.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_COMMA, KeyEvent.CTRL_MASK));↵ | |
5 | run_stop.setEnabled(false);↵ | 5 | run_shut.setEnabled(false);↵ | |
6 | run_stop.addActionListener(ReportActionRouter.getInstance());↵ | 6 | run_shut.addActionListener(ReportActionRouter.getInstance());↵ | |
7 | run_stop.setActionCommand(ACTION_STOP);↵ | 7 | run_shut.setActionCommand(ACTION_SHUTDOWN);↵ | |
8 | run_shut = new JMenuItem(JMeterUtils.getResString("shutdown"), 'Y'); | 8 | run_clear = new JMenuItem(JMeterUtils.getResString("clear"), 'C'); | |
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 the same method |
Number of node comparisons | 39 |
Number of mapped statements | 8 |
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 | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | run_start.addActionListener(ReportActionRouter.getInstance()); |
| 10 | run_stop.addActionListener(ReportActionRouter.getInstance()); | ||||||||||||||||||
6 | run_start.setActionCommand(ACTION_START); |
| 11 | run_stop.setActionCommand(ACTION_STOP); | ||||||||||||||||||
7 | run_stop = new JMenuItem(JMeterUtils.getResString("stop"), 'T'); |
| 12 | run_shut = new JMenuItem(JMeterUtils.getResString("shutdown"), 'Y'); | ||||||||||||||||||
8 | run_stop.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_PERIOD, KeyEvent.CTRL_MASK)); |
| 13 | run_shut.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_COMMA, KeyEvent.CTRL_MASK)); | ||||||||||||||||||
9 | run_stop.setEnabled(false); |
| 14 | run_shut.setEnabled(false); | ||||||||||||||||||
10 | run_stop.addActionListener(ReportActionRouter.getInstance()); |
| 15 | run_shut.addActionListener(ReportActionRouter.getInstance()); | ||||||||||||||||||
11 | run_stop.setActionCommand(ACTION_STOP); |
| 16 | run_shut.setActionCommand(ACTION_SHUTDOWN); | ||||||||||||||||||
12 | run_shut = new JMenuItem(JMeterUtils.getResString("shutdown"), 'Y'); |
| 17 | run_clear = new JMenuItem(JMeterUtils.getResString("clear"), 'C'); |
Row | Violation |
---|---|
1 | Expression run_stop is a field being modified, and thus it cannot be parameterized |
2 | Expression run_shut is a field being modified, and thus it cannot be parameterized |
3 | Expression run_stop cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression run_shut cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression run_stop cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression run_shut cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression run_stop cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression run_shut cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression run_stop cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression run_shut cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression run_shut is a field being modified, and thus it cannot be parameterized |
12 | Expression run_clear is a field being modified, and thus it cannot be parameterized |