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: 39 | Number of AST nodes: 38 | |||
1 | setLayout(new BorderLayout(10, 10));↵ | 1 | setLayout(new BorderLayout(10, 10));↵ | |
2 | setBorder(makeBorder());↵ | 2 | setBorder(makeBorder());↵ | |
3 | setBackground(Color.white);↵ | 3 | setBackground(Color.white);↵ | |
4 | JPanel pane = new JPanel();↵ | 4 | JPanel pane = new JPanel();↵ | |
5 | pane.setLayout(new BorderLayout(10,10));↵ | 5 | pane.setLayout(new BorderLayout(10,10));↵ | |
6 | pane.setBackground(Color.white);↵ | 6 | pane.setBackground(Color.white);↵ | |
7 | pane.add(this.getNamePanel(),BorderLayout.NORTH);↵ | 7 | pane.add(this.getNamePanel(),BorderLayout.NORTH);↵ | |
8 | ↵ | 8 | ↵ | |
9 | VerticalPanel options = new VerticalPanel(Color.white);↵ | 9 | VerticalPanel options = new VerticalPanel(Color.white);↵ | |
10 | xAxisLabel.setBackground(Color.white);↵ | |||
11 | yAxisLabel.setBackground(Color.white);↵ | 10 | yAxisLabel.setBackground(Color.white);↵ | |
12 | JLabel xLabel = new JLabel(JMeterUtils.getResString("report_chart_x_axis"));↵ | 11 | JLabel xLabel = new JLabel(JMeterUtils.getResString("report_chart_x_axis"));↵ | |
13 | HorizontalPanel xpanel = new HorizontalPanel(Color.white);↵ | 12 | HorizontalPanel xpanel = new HorizontalPanel(Color.white);↵ | |
14 | xLabel.setBorder(new EmptyBorder(5,2,5,2));↵ | 13 | xLabel.setBorder(new EmptyBorder(5,2,5,2));↵ | |
15 | xItems.setBackground(Color.white);↵ | 14 | xItems.setBackground(Color.white);↵ | |
16 | xItems.setValues(AbstractTable.xitems);↵ | 15 | xItems.setValues(AbstractTable.xitems);↵ | |
17 | xpanel.add(xLabel);↵ | 16 | xpanel.add(xLabel);↵ | |
18 | xpanel.add(xItems);↵ | 17 | xpanel.add(xItems);↵ | |
19 | options.add(xpanel);↵ | 18 | options.add(xpanel);↵ | |
20 | JLabel xALabel = new JLabel(JMeterUtils.getResString("report_chart_x_axis_label"));↵ | 19 | JLabel xALabel = new JLabel(JMeterUtils.getResString("report_chart_x_axis_label"));↵ | |
21 | HorizontalPanel xApanel = new HorizontalPanel(Color.white);↵ | 20 | HorizontalPanel xApanel = new HorizontalPanel(Color.white);↵ | |
22 | xALabel.setBorder(new EmptyBorder(5,2,5,2));↵ | 21 | xALabel.setBorder(new EmptyBorder(5,2,5,2));↵ | |
23 | xAxisLabel.setBackground(Color.white);↵ | 22 | xAxisLabel.setBackground(Color.white);↵ | |
24 | xAxisLabel.setValues(AbstractChart.X_LABELS);↵ | 23 | xAxisLabel.setValues(AbstractChart.X_LABELS);↵ | |
25 | xApanel.add(xALabel);↵ | 24 | xApanel.add(xALabel);↵ | |
26 | xApanel.add(xAxisLabel);↵ | 25 | xApanel.add(xAxisLabel);↵ | |
27 | options.add(xApanel);↵ | 26 | options.add(xApanel);↵ | |
28 | ↵ | 27 | ↵ | |
29 | JLabel yLabel = new JLabel(JMeterUtils.getResString("report_chart_y_axis"));↵ | 28 | JLabel yLabel = new JLabel(JMeterUtils.getResString("report_chart_y_axis"));↵ | |
30 | HorizontalPanel ypanel = new HorizontalPanel(Color.white);↵ | 29 | HorizontalPanel ypanel = new HorizontalPanel(Color.white);↵ | |
31 | yLabel.setBorder(new EmptyBorder(5,2,5,2));↵ | 30 | yLabel.setBorder(new EmptyBorder(5,2,5,2));↵ | |
32 | yItems.setBackground(Color.white);↵ | 31 | yItems.setBackground(Color.white);↵ | |
33 | yItems.setValues(AbstractTable.items);↵ | 32 | yItems.setValues(AbstractTable.items);↵ | |
34 | ypanel.add(yLabel);↵ | 33 | ypanel.add(yLabel);↵ | |
35 | ypanel.add(yItems);↵ | 34 | ypanel.add(yItems);↵ | |
36 | options.add(ypanel);↵ | 35 | options.add(ypanel);↵ | |
37 | options.add(yAxisLabel);↵ | 36 | options.add(yAxisLabel);↵ | |
38 | options.add(caption);↵ | 37 | options.add(caption);↵ | |
39 | options.add(url);↵ | 38 | options.add(urls);↵ | |
40 | ↵ | 39 | ↵ | |
41 | add(pane,BorderLayout.NORTH);↵ | 40 | add(pane,BorderLayout.NORTH);↵ | |
42 | add(options,BorderLayout.CENTER); | 41 |
| |
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 | 747 |
Number of mapped statements | 38 |
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 | setLayout(new BorderLayout(10, 10)); | 1 | setLayout(new BorderLayout(10, 10)); | |||||||||||
2 | setBorder(makeBorder()); | 2 | setBorder(makeBorder()); | |||||||||||
3 | setBackground(Color.white); | 3 | setBackground(Color.white); | |||||||||||
4 | JPanel pane = new JPanel(); | 4 | JPanel pane = new JPanel(); | |||||||||||
5 | pane.setLayout(new BorderLayout(10, 10)); | 5 | pane.setLayout(new BorderLayout(10, 10)); | |||||||||||
6 | pane.setBackground(Color.white); | 6 | pane.setBackground(Color.white); | |||||||||||
7 | pane.add(this.getNamePanel(), BorderLayout.NORTH); | 7 | pane.add(this.getNamePanel(), BorderLayout.NORTH); | |||||||||||
8 | VerticalPanel options = new VerticalPanel(Color.white); | 8 | VerticalPanel options = new VerticalPanel(Color.white); | |||||||||||
9 | xAxisLabel.setBackground(Color.white); | | ||||||||||||
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 |
---|