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());
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/modifiers/gui/CounterConfigGui.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
if (c instanceof CounterConfig) {
1
if (s instanceof 
2
			CounterConfig config = (CounterConfig
2
SoapSampler) {
3
) c;
3
			SoapSampler sampler = (SoapSampler) s;
4
			config.setStart(startField.getText());
4
			
5
			// Bug 22820 if (endField.getText().length() > 0)
6
			{
7
				config.setEnd(endField.getText());
8
			}
9
			config.setIncrement(incrField.getText());
10
			config.setVarName(varNameField.getText());
11
            config.setFormat(formatField.getText
5
sampler.setURLData(urlField.getText());
6
			sampler.setXmlData(soapXml.getText());
7
            sampler.setXmlFile(soapXmlFile.getFilename());
8
			sampler.setSOAPAction(soapAction.getText());
12
());
9
			sampler.setSendSOAPAction(sendSoapAction.isSelected());
13
			config.setIsPerUser(perUserField.isSelected());
10
			sampler.setUseKeepAlive(useKeepAlive.isSelected());
14
		
11
		
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