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());
if (s instanceof SoapSampler) { SoapSampler sampler = (SoapSampler) s; sampler.setURLData(urlField.getText()); sampler.setXmlData(soapXml.getText()); sampler.setXmlFile(soapXmlFile.getFilename()); sampler.setSOAPAction(soapAction.getText()); sampler.setSendSOAPAction(sendSoapAction.isSelected()); sampler.setUseKeepAlive(useKeepAlive.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/protocol/http/control/gui/SoapSamplerGui.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void modifyTestElement(TestElement element) {
2
		this.configureTestElement(element);
3
		BarChart bc = (BarChart)element;
4
		bc.setXAxis(xItems.getText());
5
		bc.setYAxis(yItems.getText());
6
		bc.setXLabel(xAxisLabel.getText());
7
		bc.setYLabel(yAxisLabel.getText());
8
        bc.setCaption(caption.getText());
9
        bc.setURL(url.getText
1
if (s instanceof SoapSampler) {
2
			SoapSampler sampler = (SoapSampler) s;
3
			sampler.setURLData(urlField.getText());
4
			sampler.setXmlData(soapXml.getText());
5
            sampler.setXmlFile(soapXmlFile.getFilename());
6
			sampler.setSOAPAction(soapAction.getText());
7
			sampler.setSendSOAPAction(sendSoapAction.isSelected());
10
());
8
			sampler.setUseKeepAlive(useKeepAlive.isSelected());
11
	
9
		
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