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/JMeterMenuBar.java | |||
Method name: void makeRunMenu()
|
Method name: void makeRunMenu()
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | run_stop.addActionListener(ActionRouter.getInstance());↵ | 1 | run_start.addActionListener(ActionRouter.getInstance());↵ | |
2 | run_stop.setActionCommand(ActionNames.ACTION_STOP);↵ | 2 | run_start.setActionCommand(ActionNames.ACTION_ST↵ | |
3 | ART);↵ | |||
3 | run_shut = new JMenuItem(JMeterUtils.getResString("shutdown"), 'Y'); //$NON-NLS-1$↵ | 4 | run_stop = new JMenuItem(JMeterUtils.getResString("stop"), 'T'); //$NON-NLS-1$↵ | |
4 | run_shut.setAccelerator(KeyStrokes.ACTION_SHUTDOWN);↵ | 5 | run_stop.setAccelerator(KeyStrokes.ACTION_STOP);↵ | |
5 | run_shut.setEnabled(false);↵ | 6 | run_stop.setEnabled(false);↵ | |
6 | run_shut.addActionListener(ActionRouter.getInstance());↵ | 7 | run_stop.addActionListener(ActionRouter.getInstance());↵ | |
7 | run_shut.setActionCommand(ActionNames.ACTION_SHUTDOWN);↵ | 8 | run_stop.setActionCommand(ActionNames.ACTION_STOP);↵ | |
8 | run_clear = new JMenuItem(JMeterUtils.getResString("clear"), 'C'); | 9 | run_shut = new JMenuItem(JMeterUtils.getResString("shutdown"), 'Y'); | |
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 | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10 | run_stop.addActionListener(ActionRouter.getInstance()); |
| 5 | run_start.addActionListener(ActionRouter.getInstance()); | ||||||||||||||||||
11 | run_stop.setActionCommand(ActionNames.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'); | |||||||||||||||||||
13 | run_shut.setAccelerator(KeyStrokes.ACTION_SHUTDOWN); |
| 8 | run_stop.setAccelerator(KeyStrokes.ACTION_STOP); | ||||||||||||||||||
14 | run_shut.setEnabled(false); |
| 9 | run_stop.setEnabled(false); | ||||||||||||||||||
15 | run_shut.addActionListener(ActionRouter.getInstance()); |
| 10 | run_stop.addActionListener(ActionRouter.getInstance()); | ||||||||||||||||||
16 | run_shut.setActionCommand(ActionNames.ACTION_SHUTDOWN); |
| 6 | run_start.setActionCommand(ActionNames.ACTION_START); | ||||||||||||||||||
17 | run_clear = new JMenuItem(JMeterUtils.getResString("clear"), 'C'); |
| 7 | run_stop = new JMenuItem(JMeterUtils.getResString("stop"), 'T'); |
Row | Violation |
---|---|
1 | Expression run_shut cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression run_stop cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression run_shut cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression run_stop cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression run_shut cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression run_stop cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression run_shut cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression run_clear is a field being modified, and thus it cannot be parameterized |
9 | Expression run_stop is a field being modified, and thus it cannot be parameterized |