File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/OnErrorPanel.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/threads/gui/ThreadGroupGui.java | |||
Method name: JPanel createOnErrorPanel()
|
Method name: JPanel createOnErrorPanel()
|
|||
Number of AST nodes: 14 | Number of AST nodes: 13 | |||
1 | JPanel panel = new JPanel();↵ | 1 | JPanel panel = new JPanel();↵ | |
2 | panel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("sampler_on_error_action"))); //$NON-NLS-1$↵ | 2 | panel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("sampler_on_error_action"))); // $NON-NLS-1$↵ | |
3 | ButtonGroup group = new ButtonGroup();↵ | 3 | ButtonGroup group = new ButtonGroup();↵ | |
4 | continueBox = new JRadioButton(JMeterUtils.getResString("sampler_on_error_continue")); //$NON-NLS-1$↵ | 4 | continueBox = new JRadioButton(JMeterUtils.getResString("sampler_on_error_continue")); // $NON-NLS-1$↵ | |
5 | group.add(continueBox);↵ | 5 | group.add(continueBox);↵ | |
6 | continueBox.setSelected(true);↵ | 6 | ↵ | |
7 | panel.add(continueBox);↵ | 7 | panel.add(continueBox);↵ | |
8 | stopThrdBox = new JRadioButton(JMeterUtils.getResString("sampler_on_error_stop_thread")); //$NON-NLS-1$↵ | 8 | stopThrdBox = new JRadioButton(JMeterUtils.getResString("sampler_on_error_stop_thread")); // $NON-NLS-1$↵ | |
9 | group.add(stopThrdBox);↵ | 9 | group.add(stopThrdBox);↵ | |
10 | panel.add(stopThrdBox);↵ | 10 | panel.add(stopThrdBox);↵ | |
11 | stopTestBox = new JRadioButton(JMeterUtils.getResString("sampler_on_error_stop_test")); //$NON-NLS-1$↵ | 11 | stopTestBox = new JRadioButton(JMeterUtils.getResString("sampler_on_error_stop_test")); // $NON-NLS-1$↵ | |
12 | group.add(stopTestBox);↵ | 12 | group.add(stopTestBox);↵ | |
13 | panel.add(stopTestBox);↵ | 13 | panel.add(stopTestBox);↵ | |
14 | return panel; | 14 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
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 | 72 |
Number of mapped statements | 13 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | JPanel panel = new JPanel(); | 1 | JPanel panel = new JPanel(); | |
2 | panel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("sampler_on_error_action"))); | 2 | panel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("sampler_on_error_action"))); | |
3 | ButtonGroup group = new ButtonGroup(); | 3 | ButtonGroup group = new ButtonGroup(); | |
4 | continueBox = new JRadioButton(JMeterUtils.getResString("sampler_on_error_continue")); | 4 | continueBox = new JRadioButton(JMeterUtils.getResString("sampler_on_error_continue")); | |
5 | group.add(continueBox); | 5 | group.add(continueBox); | |
6 | continueBox.setSelected(true); | | ||
7 | panel.add(continueBox); | 6 | panel.add(continueBox); | |
8 | stopThrdBox = new JRadioButton(JMeterUtils.getResString("sampler_on_error_stop_thread")); | 7 | stopThrdBox = new JRadioButton(JMeterUtils.getResString("sampler_on_error_stop_thread")); | |
9 | group.add(stopThrdBox); | 8 | group.add(stopThrdBox); | |
10 | panel.add(stopThrdBox); | 9 | panel.add(stopThrdBox); | |
11 | stopTestBox = new JRadioButton(JMeterUtils.getResString("sampler_on_error_stop_test")); | 10 | stopTestBox = new JRadioButton(JMeterUtils.getResString("sampler_on_error_stop_test")); | |
12 | group.add(stopTestBox); | 11 | group.add(stopTestBox); | |
13 | panel.add(stopTestBox); | 12 | panel.add(stopTestBox); | |
14 | return panel; | 13 | return panel; |
Row | Violation |
---|