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 configure(TestElement)
|
Method name: void configure(TestElement)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | super.configure(element);↵ | 1 | super.configure(element);↵ | |
2 | BarChart bc = (BarChart)element;↵ | 2 | LineChart bc = (LineChart)element;↵ | |
3 | xItems.setText(bc.getXAxis());↵ | 3 | xItems.setText(bc.getXAxis());↵ | |
4 | yItems.setText(bc.getYAxis());↵ | 4 | yItems.setText(bc.getYAxis());↵ | |
5 | xAxisLabel.setText(bc.getXLabel());↵ | 5 | xAxisLabel.setText(bc.getXLabel());↵ | |
6 | yAxisLabel.setText(bc.getYLabel());↵ | 6 | yAxisLabel.setText(bc.getYLabel());↵ | |
7 | caption.setText(bc.getCaption());↵ | 7 | caption.setText(bc.getCaption());↵ | |
8 | url.setText(bc.getURL()); | 8 | urls.setText(bc.getURLs()); | |
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 different classes having the same super class |
Number of node comparisons | 64 |
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 | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super.configure(element); |
| 1 | super.configure(element); | |||||||||||||||||||
2 | BarChart bc = (BarChart)element; |
| 2 | LineChart bc = (LineChart)element; | |||||||||||||||||||
3 | xItems.setText(bc.getXAxis()); |
| 3 | xItems.setText(bc.getXAxis()); | |||||||||||||||||||
4 | yItems.setText(bc.getYAxis()); |
| 4 | yItems.setText(bc.getYAxis()); | |||||||||||||||||||
5 | xAxisLabel.setText(bc.getXLabel()); |
| 5 | xAxisLabel.setText(bc.getXLabel()); | |||||||||||||||||||
6 | yAxisLabel.setText(bc.getYLabel()); |
| 6 | yAxisLabel.setText(bc.getYLabel()); | |||||||||||||||||||
7 | caption.setText(bc.getCaption()); |
| 7 | caption.setText(bc.getCaption()); | |||||||||||||||||||
8 | url.setText(bc.getURL()); |
| 8 | urls.setText(bc.getURLs()); |
Row | Violation |
---|---|
1 | Super method call super.configure(element); cannot be extracted from method |
2 | Super method call super.configure(element); cannot be extracted from method |
3 | Expression bc.getURL() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression bc.getURLs() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression bc cannot be unified with expression bc , because common superclass org.apache.jmeter.testelement.AbstractChart does not declare member(s) public java.lang.String getURL() , public java.lang.String getURLs() |