public void modifyTestElement(TestElement s) { SubscriberSampler sampler = (SubscriberSampler) s; this.configureTestElement(sampler); sampler.setUseJNDIProperties(String.valueOf(useProperties.isSelected())); sampler.setJNDIIntialContextFactory(jndiICF.getText()); sampler.setProviderUrl(urlField.getText()); sampler.setConnectionFactory(jndiConnFac.getText()); sampler.setTopic(jmsTopic.getText()); sampler.setUsername(jmsUser.getText()); sampler.setPassword(jmsPwd.getText()); sampler.setUseAuth(reqAuth.getText()); sampler.setIterations(iterations.getText()); sampler.setReadResponse(String.valueOf(readResponse.isSelected())); sampler.setClientChoice(clientChoice.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/protocol/jms/control/gui/JMSSubscriberGui.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 s) {
1
public void configure(TestElement element) {
2
		SubscriberSampler sampler = (SubscriberSampler) s;
3
		this.configureTestElement(sampler);
2
        super.configure(element
4
		sampler.setUseJNDIProperties(String.valueOf(useProperties.isSelected()));
5
		sampler.setJNDIIntialContextFactory(jndiICF.getText());
6
		sampler.setProviderUrl(urlField.getText());
7
		sampler.setConnectionFactory(jndiConnFac.getText());
8
		sampler.setTopic(jmsTopic.getText());
9
		sampler.setUsername(jmsUser.getText());
10
		sampler.setPassword(jmsPwd.getText());
11
		sampler.setUseAuth(reqAuth.getText());
12
		sampler.setIterations(iterations.getText());
13
		sampler.setReadResponse(String.valueOf(readResponse.isSelected()));
14
		sampler.setClientChoice(clientChoice.getText
3
);
4
        BarChart bc = (BarChart)element;
5
        xItems.setText(bc.getXAxis());
6
        yItems.setText(bc.getYAxis());
7
        xAxisLabel.setText(bc.getXLabel());
8
        yAxisLabel.setText(bc.getYLabel());
9
        caption.setText(bc.getCaption());
15
());
10
        url.setText(bc.getURL());
16
	
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