super.configure(element); CounterConfig config = (CounterConfig) element; startField.setText(config.getStartAsString()); endField.setText(config.getEndAsString()); incrField.setText(config.getIncrementAsString()); formatField.setText(config.getFormat()); varNameField.setText(config.getVarName()); perUserField.setSelected(config.isPerUser());
super.configure(el); SoapSampler sampler = (SoapSampler) el; urlField.setText(sampler.getURLData()); sendSoapAction.setSelected(sampler.getSendSOAPAction()); soapAction.setText(sampler.getSOAPAction()); soapXml.setText(sampler.getXmlData()); soapXmlFile.setFilename(sampler.getXmlFile()); useKeepAlive.setSelected(sampler.getUseKeepAlive());
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: void configure(TestElement) Method name: void configure(TestElement)
Number of AST nodes: 8 Number of AST nodes: 8
1
super.configure(element);
1
super.configure(el);
2
		CounterConfig config = (CounterConfig) element;
2
		
3
		startField.setText(config.getStartAsString
3
SoapSampler sampler = (SoapSampler) el;
4
());
4
		urlField.setText(sampler.getURLData());
5
		endField.setText(config.getEndAsString());
5
		send
6
		incrField.setText(config.getIncrementAsString());
7
        formatField
6
SoapAction.setSelected(sampler.getSendSOAPAction());
7
		soapAction.setText(sampler.getSOAPAction());
8
.setText(config.getFormat());
8
		soapXml.setText(sampler.getXmlData());
9
		varNameField.setText(config.getVarName());
10
		perUserField.setSelected(config.isPerUser
9
        soapXmlFile.setFilename(sampler.getXmlFile());
11
());
10
        useKeepAlive.setSelected(sampler.getUseKeepAlive());
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons64
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements7
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super.configure(element);
    1
    super.configure(element);
    1
    super.configure(el);
    Differences
    Expression1Expression2Difference
    elementelVARIABLE_NAME_MISMATCH
    1
    super.configure(el);
    2
    CounterConfig config = (CounterConfig)element;
    2
    CounterConfig config = (CounterConfig)element;
    2
    SoapSampler sampler = (SoapSampler)el;
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.modifiers.CounterConfigorg.apache.jmeter.protocol.http.sampler.SoapSamplerSUBCLASS_TYPE_MISMATCH
    configsamplerVARIABLE_NAME_MISMATCH
    org.apache.jmeter.modifiers.CounterConfigorg.apache.jmeter.protocol.http.sampler.SoapSamplerSUBCLASS_TYPE_MISMATCH
    org.apache.jmeter.modifiers.CounterConfigorg.apache.jmeter.protocol.http.sampler.SoapSamplerSUBCLASS_TYPE_MISMATCH
    elementelVARIABLE_NAME_MISMATCH
    2
    SoapSampler sampler = (SoapSampler)el;
    3
    startField.setText(config.getStartAsString());
    3
    startField.setText(config.getStartAsString());
    3
    urlField.setText(sampler.getURLData());
    Differences
    Expression1Expression2Difference
    getStartAsStringgetURLDataMETHOD_INVOCATION_NAME_MISMATCH
    configsamplerVARIABLE_NAME_MISMATCH
    org.apache.jmeter.modifiers.CounterConfigorg.apache.jmeter.protocol.http.sampler.SoapSamplerSUBCLASS_TYPE_MISMATCH
    startFieldurlFieldVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression config.getStartAsString() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression sampler.getURLData() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3
    urlField.setText(sampler.getURLData());
                                                                                                                          
    4
    sendSoapAction.setSelected(sampler.getSendSOAPAction());
    4
    endField.setText(config.getEndAsString());
    4
    endField.setText(config.getEndAsString());
    5
    soapAction.setText(sampler.getSOAPAction());
    Differences
    Expression1Expression2Difference
    getEndAsStringgetSOAPActionMETHOD_INVOCATION_NAME_MISMATCH
    configsamplerVARIABLE_NAME_MISMATCH
    org.apache.jmeter.modifiers.CounterConfigorg.apache.jmeter.protocol.http.sampler.SoapSamplerSUBCLASS_TYPE_MISMATCH
    endFieldsoapActionVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression config.getEndAsString() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression sampler.getSOAPAction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5
    soapAction.setText(sampler.getSOAPAction());
    5
    incrField.setText(config.getIncrementAsString());
    5
    incrField.setText(config.getIncrementAsString());
    6
    soapXml.setText(sampler.getXmlData());
    Differences
    Expression1Expression2Difference
    getIncrementAsStringgetXmlDataMETHOD_INVOCATION_NAME_MISMATCH
    configsamplerVARIABLE_NAME_MISMATCH
    org.apache.jmeter.modifiers.CounterConfigorg.apache.jmeter.protocol.http.sampler.SoapSamplerSUBCLASS_TYPE_MISMATCH
    incrFieldsoapXmlVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextFieldorg.apache.jorphan.gui.JLabeledTextAreaSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression config.getIncrementAsString() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression sampler.getXmlData() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression incrField cannot be unified with expression soapXml , because common superclass javax.swing.JPanel does not declare member(s) public void setText(java.lang.String)
    6
    soapXml.setText(sampler.getXmlData());
    6
    formatField.setText(config.getFormat());
    6
    formatField.setText(config.getFormat());
    7
    soapXmlFile.setFilename(sampler.getXmlFile());
    Differences
    Expression1Expression2Difference
    setTextsetFilenameMETHOD_INVOCATION_NAME_MISMATCH
    getFormatgetXmlFileMETHOD_INVOCATION_NAME_MISMATCH
    configsamplerVARIABLE_NAME_MISMATCH
    org.apache.jmeter.modifiers.CounterConfigorg.apache.jmeter.protocol.http.sampler.SoapSamplerSUBCLASS_TYPE_MISMATCH
    formatFieldsoapXmlFileVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextFieldorg.apache.jmeter.gui.util.FilePanelSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression formatField.setText(config.getFormat()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression soapXmlFile.setFilename(sampler.getXmlFile()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression formatField.setText(config.getFormat()) is a void method call, and thus it cannot be parameterized
    Expression soapXmlFile.setFilename(sampler.getXmlFile()) is a void method call, and thus it cannot be parameterized
    Expression config.getFormat() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression sampler.getXmlFile() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7
    soapXmlFile.setFilename(sampler.getXmlFile());
    7
    varNameField.setText(config.getVarName());
                                                                                              
    8
    perUserField.setSelected(config.isPerUser());
    8
    perUserField.setSelected(config.isPerUser());
    8
    useKeepAlive.setSelected(sampler.getUseKeepAlive());
    Differences
    Expression1Expression2Difference
    isPerUsergetUseKeepAliveMETHOD_INVOCATION_NAME_MISMATCH
    configsamplerVARIABLE_NAME_MISMATCH
    org.apache.jmeter.modifiers.CounterConfigorg.apache.jmeter.protocol.http.sampler.SoapSamplerSUBCLASS_TYPE_MISMATCH
    perUserFielduseKeepAliveVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression config.isPerUser() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression sampler.getUseKeepAlive() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8
    useKeepAlive.setSelected(sampler.getUseKeepAlive());
    Precondition Violations (16)
    Row Violation
    1Expression config.getStartAsString() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression sampler.getURLData() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression config.getEndAsString() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression sampler.getSOAPAction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression config.getIncrementAsString() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression sampler.getXmlData() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression incrField cannot be unified with expression soapXml , because common superclass javax.swing.JPanel does not declare member(s) public void setText(java.lang.String)
    8Expression formatField.setText(config.getFormat()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    9Expression soapXmlFile.setFilename(sampler.getXmlFile()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    10Expression formatField.setText(config.getFormat()) is a void method call, and thus it cannot be parameterized
    11Expression soapXmlFile.setFilename(sampler.getXmlFile()) is a void method call, and thus it cannot be parameterized
    12Expression config.getFormat() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    13Expression sampler.getXmlFile() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    14Expression config.isPerUser() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    15Expression sampler.getUseKeepAlive() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    16Clone fragment #1 returns variable config with type org.apache.jmeter.modifiers.CounterConfig , while Clone fragment #2 returns variable sampler with type org.apache.jmeter.protocol.http.sampler.SoapSampler