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/BarChartGui.java | |||
Method name: void modifyTestElement(TestElement)
|
Method name: void configure(TestElement)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | this.configureTestElement(element);↵ | 1 | super.configure(element);↵ | |
2 | BarChart bc = (BarChart)element;↵ | 2 | BarChart bc = (BarChart)element;↵ | |
3 | bc.setXAxis(xItems.getText());↵ | 3 | xItems.setText(↵ | |
4 | bc.setYAxis(↵ | 4 | bc.getXAxis());↵ | |
5 | yItems.getText());↵ | 5 | yItems.setText(↵ | |
6 | bc.setXLabel(↵ | 6 | bc.getYAxis());↵ | |
7 | xAxisLabel.getText());↵ | 7 | xAxisLabel.setText(↵ | |
8 | bc.setYLabel(↵ | 8 | bc.getXLabel());↵ | |
9 | yAxisLabel.getText());↵ | 9 | yAxisLabel.setText(bc.getYLabel());↵ | |
10 | bc.setCaption(caption.getText());↵ | 10 | caption.setText(bc.getCaption());↵ | |
11 | bc.setURL(url.getText()); | 11 | url.setText(bc.getURL()); | |
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 declared in the same class |
Number of node comparisons | 64 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 6 |
Number of unmapped statements in the second code fragment | 6 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | this.configureTestElement(element); |
| 1 | super.configure(element); | ||||||||||||
2 | BarChart bc = (BarChart)element; | 2 | BarChart bc = (BarChart)element; | |||||||||||||
| 3 | xItems.setText(bc.getXAxis()); | ||||||||||||||
3 | bc.setXAxis(xItems.getText()); | | ||||||||||||||
| 4 | yItems.setText(bc.getYAxis()); | ||||||||||||||
4 | bc.setYAxis(yItems.getText()); | | ||||||||||||||
| 5 | xAxisLabel.setText(bc.getXLabel()); | ||||||||||||||
5 | bc.setXLabel(xAxisLabel.getText()); | | ||||||||||||||
| 6 | yAxisLabel.setText(bc.getYLabel()); | ||||||||||||||
6 | bc.setYLabel(yAxisLabel.getText()); | | ||||||||||||||
| 7 | caption.setText(bc.getCaption()); | ||||||||||||||
7 | bc.setCaption(caption.getText()); | | ||||||||||||||
| 8 | url.setText(bc.getURL()); | ||||||||||||||
8 | bc.setURL(url.getText()); | |
Row | Violation |
---|---|
1 | Expression this.configureTestElement(element) is a void method call, and thus it cannot be parameterized |
2 | Expression super.configure(element) is a void method call, and thus it cannot be parameterized |