File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/BarChartGui.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/LineGraphGui.java | |||
Method name: void init()
|
Method name: void init()
|
|||
Number of AST nodes: 30 | Number of AST nodes: 30 | |||
1 | yAxisLabel.setBackground(Color.white);↵ | 1 | yAxisLabel.setBackground(Color.white);↵ | |
2 | JLabel xLabel = new JLabel(JMeterUtils.getResString("report_chart_x_axis"));↵ | 2 | JLabel xLabel = new JLabel(JMeterUtils.getResString("report_chart_x_axis"));↵ | |
3 | HorizontalPanel xpanel = new HorizontalPanel(Color.white);↵ | 3 | HorizontalPanel xpanel = new HorizontalPanel(Color.white);↵ | |
4 | xLabel.setBorder(new EmptyBorder(5,2,5,2));↵ | 4 | xLabel.setBorder(new EmptyBorder(5,2,5,2));↵ | |
5 | xItems.setBackground(Color.white);↵ | 5 | xItems.setBackground(Color.white);↵ | |
6 | xItems.setValues(AbstractTable.xitems);↵ | 6 | xItems.setValues(AbstractTable.xitems);↵ | |
7 | xpanel.add(xLabel);↵ | 7 | xpanel.add(xLabel);↵ | |
8 | xpanel.add(xItems);↵ | 8 | xpanel.add(xItems);↵ | |
9 | options.add(xpanel);↵ | 9 | options.add(xpanel);↵ | |
10 | JLabel xALabel = new JLabel(JMeterUtils.getResString("report_chart_x_axis_label"));↵ | 10 | JLabel xALabel = new JLabel(JMeterUtils.getResString("report_chart_x_axis_label"));↵ | |
11 | HorizontalPanel xApanel = new HorizontalPanel(Color.white);↵ | 11 | HorizontalPanel xApanel = new HorizontalPanel(Color.white);↵ | |
12 | xALabel.setBorder(new EmptyBorder(5,2,5,2));↵ | 12 | xALabel.setBorder(new EmptyBorder(5,2,5,2));↵ | |
13 | xAxisLabel.setBackground(Color.white);↵ | 13 | xAxisLabel.setBackground(Color.white);↵ | |
14 | xAxisLabel.setValues(AbstractChart.X_LABELS);↵ | 14 | xAxisLabel.setValues(AbstractChart.X_LABELS);↵ | |
15 | xApanel.add(xALabel);↵ | 15 | xApanel.add(xALabel);↵ | |
16 | xApanel.add(xAxisLabel);↵ | 16 | xApanel.add(xAxisLabel);↵ | |
17 | options.add(xApanel);↵ | 17 | options.add(xApanel);↵ | |
18 | ↵ | 18 | ↵ | |
19 | JLabel yLabel = new JLabel(JMeterUtils.getResString("report_chart_y_axis"));↵ | 19 | JLabel yLabel = new JLabel(JMeterUtils.getResString("report_chart_y_axis"));↵ | |
20 | HorizontalPanel ypanel = new HorizontalPanel(Color.white);↵ | 20 | HorizontalPanel ypanel = new HorizontalPanel(Color.white);↵ | |
21 | yLabel.setBorder(new EmptyBorder(5,2,5,2));↵ | 21 | yLabel.setBorder(new EmptyBorder(5,2,5,2));↵ | |
22 | yItems.setBackground(Color.white);↵ | 22 | yItems.setBackground(Color.white);↵ | |
23 | yItems.setValues(AbstractTable.items);↵ | 23 | yItems.setValues(AbstractTable.items);↵ | |
24 | ypanel.add(yLabel);↵ | 24 | ypanel.add(yLabel);↵ | |
25 | ypanel.add(yItems);↵ | 25 | ypanel.add(yItems);↵ | |
26 | options.add(ypanel);↵ | 26 | options.add(ypanel);↵ | |
27 | options.add(yAxisLabel);↵ | 27 | options.add(yAxisLabel);↵ | |
28 | options.add(caption);↵ | 28 | options.add(caption);↵ | |
29 | options.add(url);↵ | 29 | options.add(urls);↵ | |
30 | ↵ | 30 | ↵ | |
31 | add(pane,BorderLayout.NORTH);↵ | 31 | add(pane,BorderLayout.NORTH);↵ | |
32 | add(options,BorderLayout.CENTER); | 32 |
| |
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 | 339 |
Number of mapped statements | 30 |
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 | yAxisLabel.setBackground(Color.white); | 9 | yAxisLabel.setBackground(Color.white); | |||||||||||
11 | JLabel xLabel = new JLabel(JMeterUtils.getResString("report_chart_x_axis")); | 10 | JLabel xLabel = new JLabel(JMeterUtils.getResString("report_chart_x_axis")); | |||||||||||
12 | HorizontalPanel xpanel = new HorizontalPanel(Color.white); | 11 | HorizontalPanel xpanel = new HorizontalPanel(Color.white); | |||||||||||
13 | xLabel.setBorder(new EmptyBorder(5, 2, 5, 2)); | 12 | xLabel.setBorder(new EmptyBorder(5, 2, 5, 2)); | |||||||||||
14 | xItems.setBackground(Color.white); | 13 | xItems.setBackground(Color.white); | |||||||||||
15 | xItems.setValues(AbstractTable.xitems); | 14 | xItems.setValues(AbstractTable.xitems); | |||||||||||
16 | xpanel.add(xLabel); | 15 | xpanel.add(xLabel); | |||||||||||
17 | xpanel.add(xItems); | 16 | xpanel.add(xItems); | |||||||||||
18 | options.add(xpanel); | 17 | options.add(xpanel); | |||||||||||
19 | JLabel xALabel = new JLabel(JMeterUtils.getResString("report_chart_x_axis_label")); | 18 | JLabel xALabel = new JLabel(JMeterUtils.getResString("report_chart_x_axis_label")); | |||||||||||
20 | HorizontalPanel xApanel = new HorizontalPanel(Color.white); | 19 | HorizontalPanel xApanel = new HorizontalPanel(Color.white); | |||||||||||
21 | xALabel.setBorder(new EmptyBorder(5, 2, 5, 2)); | 20 | xALabel.setBorder(new EmptyBorder(5, 2, 5, 2)); | |||||||||||
22 | xAxisLabel.setBackground(Color.white); | 21 | xAxisLabel.setBackground(Color.white); | |||||||||||
23 | xAxisLabel.setValues(AbstractChart.X_LABELS); | 22 | xAxisLabel.setValues(AbstractChart.X_LABELS); | |||||||||||
24 | xApanel.add(xALabel); | 23 | xApanel.add(xALabel); | |||||||||||
25 | xApanel.add(xAxisLabel); | 24 | xApanel.add(xAxisLabel); | |||||||||||
26 | options.add(xApanel); | 25 | options.add(xApanel); | |||||||||||
27 | JLabel yLabel = new JLabel(JMeterUtils.getResString("report_chart_y_axis")); | 26 | JLabel yLabel = new JLabel(JMeterUtils.getResString("report_chart_y_axis")); | |||||||||||
28 | HorizontalPanel ypanel = new HorizontalPanel(Color.white); | 27 | HorizontalPanel ypanel = new HorizontalPanel(Color.white); | |||||||||||
29 | yLabel.setBorder(new EmptyBorder(5, 2, 5, 2)); | 28 | yLabel.setBorder(new EmptyBorder(5, 2, 5, 2)); | |||||||||||
30 | yItems.setBackground(Color.white); | 29 | yItems.setBackground(Color.white); | |||||||||||
31 | yItems.setValues(AbstractTable.items); | 30 | yItems.setValues(AbstractTable.items); | |||||||||||
32 | ypanel.add(yLabel); | 31 | ypanel.add(yLabel); | |||||||||||
33 | ypanel.add(yItems); | 32 | ypanel.add(yItems); | |||||||||||
34 | options.add(ypanel); | 33 | options.add(ypanel); | |||||||||||
35 | options.add(yAxisLabel); | 34 | options.add(yAxisLabel); | |||||||||||
36 | options.add(caption); | 35 | options.add(caption); | |||||||||||
37 | options.add(url); |
| 36 | options.add(urls); | ||||||||||
38 | add(pane, BorderLayout.NORTH); | 37 | add(pane, BorderLayout.NORTH); | |||||||||||
39 | add(options, BorderLayout.CENTER); | 38 | add(options, BorderLayout.CENTER); |
Row | Violation |
---|