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());
if (c instanceof CounterConfig) { CounterConfig config = (CounterConfig) c; config.setStart(startField.getText()); // Bug 22820 if (endField.getText().length() > 0) { config.setEnd(endField.getText()); } config.setIncrement(incrField.getText()); config.setVarName(varNameField.getText()); config.setFormat(formatField.getText()); config.setIsPerUser(perUserField.isSelected());
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/modifiers/gui/CounterConfigGui.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void configure(TestElement element) {
2
        super.configure(element);
3
        BarChart bc = (BarChart)element;
4
        xItems.setText(bc.getXAxis());
5
        yItems.setText(bc.getYAxis());
6
        xAxisLabel.setText(bc.getXLabel());
7
        yAxisLabel.setText(bc.getYLabel());
8
        caption.setText(bc.getCaption());
9
        url.setText(bc.getURL
1
if (c instanceof CounterConfig) {
2
			CounterConfig config = (CounterConfig) c;
3
			config.setStart(startField.getText());
4
			// Bug 22820 if (endField.getText().length() > 0)
5
			{
6
				config.setEnd(endField.getText());
7
			}
8
			config.setIncrement(incrField.getText());
9
			config.setVarName(varNameField.getText());
10
            config.setFormat(formatField.getText());
10
());
11
			config.setIsPerUser(perUserField.isSelected());
11
    
12
		
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0