public void modifyTestElement(TestElement element) {
this.configureTestElement(element);
BarChart bc = (BarChart)element;
bc.setXAxis(xItems.getText());
bc.setYAxis(yItems.getText());
bc.setXLabel(xAxisLabel.getText());
bc.setYLabel(yAxisLabel.getText());
bc.setCaption(caption.getText());
bc.setURL(url.getText());
public void configure(TestElement element) {
super.configure(element);
BarChart bc = (BarChart)element;
xItems.setText(bc.getXAxis());
yItems.setText(bc.getYAxis());
xAxisLabel.setText(bc.getXLabel());
yAxisLabel.setText(bc.getYLabel());
caption.setText(bc.getCaption());
url.setText(bc.getURL());
Clone fragments detected by clone detection tool
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:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public void modifyTestElement(TestElement element) {↵ | | 1 | public void configure(TestElement element) {↵
|
2 | this.configureTestElement(element);↵ | | 2 | super.configure(element);↵
|
3 | BarChart bc = (BarChart)element;↵ | | 3 | BarChart bc = (BarChart)element;↵
|
4 | bc.setXAxis(xItems.getText());↵ | | 4 | xItems.setText(↵
|
5 | bc.setYAxis(↵ | | 5 | bc.getXAxis());↵
|
6 | yItems.getText());↵ | | 6 | yItems.setText(↵
|
7 | bc.setXLabel(↵ | | 7 | bc.getYAxis());↵
|
8 | xAxisLabel.getText());↵ | | 8 | xAxisLabel.setText(↵
|
9 | bc.setYLabel(↵ | | 9 | bc.getXLabel());↵
|
10 | yAxisLabel.getText());↵ | | 10 | yAxisLabel.setText(↵
|
11 | bc.setCaption(caption.getText↵ | | 11 | bc.getYLabel());↵
|
12 | ());↵ | | 12 | caption.setText(bc.getCaption());↵
|
13 | bc.setURL(url.getText());↵ | | 13 | url.setText(bc.getURL());↵
|
14 | | | 14 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |