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());
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/http/control/gui/SoapSamplerGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/BarChartGui.java
Method name: void configure(TestElement) Method name: void configure(TestElement)
Number of AST nodes: 8 Number of AST nodes: 8
1
super.configure(el);
1
super.configure(el
2
		SoapSampler sampler = (SoapSampler) el;
3
		urlField.setText(sampler.getURLData());
4
		sendSoapAction.setSelected(sampler.getSendSOAPAction());
5
		soapAction.setText(sampler.getSOAPAction());
6
		soapXml.setText(sampler.getXmlData());
7
        soapXmlFile.setFilename(sampler.getXmlFile
2
ement);
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
());
8
        caption.setText(bc.getCaption());
9
        useKeepAlive.setSelected(sampler.getUseKeepAlive());
9
        url.setText(bc.getURL());
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 statements6
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super.configure(el);
    1
    super.configure(el);
    1
    super.configure(element);
    Differences
    Expression1Expression2Difference
    elelementVARIABLE_NAME_MISMATCH
    1
    super.configure(element);
    2
    SoapSampler sampler = (SoapSampler)el;
    2
    SoapSampler sampler = (SoapSampler)el;
    2
    BarChart bc = (BarChart)element;
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.protocol.http.sampler.SoapSamplerorg.apache.jmeter.testelement.BarChartSUBCLASS_TYPE_MISMATCH
    samplerbcVARIABLE_NAME_MISMATCH
    org.apache.jmeter.protocol.http.sampler.SoapSamplerorg.apache.jmeter.testelement.BarChartSUBCLASS_TYPE_MISMATCH
    org.apache.jmeter.protocol.http.sampler.SoapSamplerorg.apache.jmeter.testelement.BarChartSUBCLASS_TYPE_MISMATCH
    elelementVARIABLE_NAME_MISMATCH
    2
    BarChart bc = (BarChart)element;
                                                                      
    3
    xItems.setText(bc.getXAxis());
                                                                      
    4
    yItems.setText(bc.getYAxis());
    3
    urlField.setText(sampler.getURLData());
    3
    urlField.setText(sampler.getURLData());
    6
    yAxisLabel.setText(bc.getYLabel());
    Differences
    Expression1Expression2Difference
    getURLDatagetYLabelMETHOD_INVOCATION_NAME_MISMATCH
    samplerbcVARIABLE_NAME_MISMATCH
    org.apache.jmeter.protocol.http.sampler.SoapSamplerorg.apache.jmeter.testelement.BarChartSUBCLASS_TYPE_MISMATCH
    urlFieldyAxisLabelVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression sampler.getURLData() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression bc.getYLabel() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6
    yAxisLabel.setText(bc.getYLabel());
    4
    sendSoapAction.setSelected(sampler.getSendSOAPAction());
                                                                                                                          
    5
    soapAction.setText(sampler.getSOAPAction());
    5
    soapAction.setText(sampler.getSOAPAction());
    7
    caption.setText(bc.getCaption());
    Differences
    Expression1Expression2Difference
    getSOAPActiongetCaptionMETHOD_INVOCATION_NAME_MISMATCH
    samplerbcVARIABLE_NAME_MISMATCH
    org.apache.jmeter.protocol.http.sampler.SoapSamplerorg.apache.jmeter.testelement.BarChartSUBCLASS_TYPE_MISMATCH
    soapActioncaptionVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression sampler.getSOAPAction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression bc.getCaption() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7
    caption.setText(bc.getCaption());
    6
    soapXml.setText(sampler.getXmlData());
    6
    soapXml.setText(sampler.getXmlData());
    5
    xAxisLabel.setText(bc.getXLabel());
    Differences
    Expression1Expression2Difference
    getXmlDatagetXLabelMETHOD_INVOCATION_NAME_MISMATCH
    samplerbcVARIABLE_NAME_MISMATCH
    org.apache.jmeter.protocol.http.sampler.SoapSamplerorg.apache.jmeter.testelement.BarChartSUBCLASS_TYPE_MISMATCH
    soapXmlxAxisLabelVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextAreaorg.apache.jorphan.gui.JLabeledChoiceSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression sampler.getXmlData() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression bc.getXLabel() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression soapXml cannot be unified with expression xAxisLabel , because common superclass javax.swing.JPanel does not declare member(s) public void setText(java.lang.String)
    5
    xAxisLabel.setText(bc.getXLabel());
    7
    soapXmlFile.setFilename(sampler.getXmlFile());
    7
    soapXmlFile.setFilename(sampler.getXmlFile());
    8
    url.setText(bc.getURL());
    Differences
    Expression1Expression2Difference
    setFilenamesetTextMETHOD_INVOCATION_NAME_MISMATCH
    getXmlFilegetURLMETHOD_INVOCATION_NAME_MISMATCH
    samplerbcVARIABLE_NAME_MISMATCH
    org.apache.jmeter.protocol.http.sampler.SoapSamplerorg.apache.jmeter.testelement.BarChartSUBCLASS_TYPE_MISMATCH
    soapXmlFileurlVARIABLE_NAME_MISMATCH
    org.apache.jmeter.gui.util.FilePanelorg.apache.jorphan.gui.JLabeledTextFieldSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression soapXmlFile.setFilename(sampler.getXmlFile()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression url.setText(bc.getURL()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression soapXmlFile.setFilename(sampler.getXmlFile()) is a void method call, and thus it cannot be parameterized
    Expression url.setText(bc.getURL()) is a void method call, and thus it cannot be parameterized
    Expression sampler.getXmlFile() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression bc.getURL() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8
    url.setText(bc.getURL());
    8
    useKeepAlive.setSelected(sampler.getUseKeepAlive());
                                                                                                                  
    Precondition Violations (14)
    Row Violation
    1Expression sampler.getURLData() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression bc.getYLabel() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression sampler.getSOAPAction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression bc.getCaption() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression sampler.getXmlData() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression bc.getXLabel() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression soapXml cannot be unified with expression xAxisLabel , because common superclass javax.swing.JPanel does not declare member(s) public void setText(java.lang.String)
    8Expression soapXmlFile.setFilename(sampler.getXmlFile()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    9Expression url.setText(bc.getURL()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    10Expression soapXmlFile.setFilename(sampler.getXmlFile()) is a void method call, and thus it cannot be parameterized
    11Expression url.setText(bc.getURL()) is a void method call, and thus it cannot be parameterized
    12Expression sampler.getXmlFile() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    13Expression bc.getURL() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    14Clone fragment #1 returns variable sampler with type org.apache.jmeter.protocol.http.sampler.SoapSampler , while Clone fragment #2 returns variable bc with type org.apache.jmeter.testelement.BarChart