super.clearGui(); server.setText(""); //$NON-NLS-1$ port.setText(""); //$NON-NLS-1$ timeout.setText(""); //$NON-NLS-1$ requestData.setText(""); //$NON-NLS-1$ reUseConnection.setSelected(true); setNoDelay.setSelected(false);
super.clearGui(); urlField.setText(""); //$NON-NLS-1$ soapAction.setText(""); //$NON-NLS-1$ soapXml.setText(""); //$NON-NLS-1$ sendSoapAction.setSelected(true); soapXmlFile.setFilename(""); //$NON-NLS-1$ useKeepAlive.setSelected(false);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/tcp/config/gui/TCPConfigGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/gui/SoapSamplerGui.java
Method name: void clearGui() Method name: void clearGui()
Number of AST nodes: 7 Number of AST nodes: 7
1
super.clearGui();
1
super.clearGui();
2
        
2
        
3
        server.setText(""); //$NON-NLS-1$
3
        urlField.setText(""); //$NON-NLS-1$
4
        port.setText(""); //$NON-NLS-1$
4
        soapAction.setText(""); //$NON-NLS-1$
5
        timeout.setText(""); //$NON-NLS-1$
5
        soapXml.setText(""); //$NON-NLS-1$
6
        requestData.setText(""); //$NON-NLS-1$
6
        
7
        reUseConnection.setSelected(true);
7
sendSoapAction.setSelected(true);
8
        soapXmlFile.setFilename(""); //$NON-NLS-1$
8
        setNoDelay.setSelected(false);
9
        useKeepAlive.setSelected(false);
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 comparisons49
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements7
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super.clearGui();
    1
    super.clearGui();
    2
    server.setText("");
    2
    server.setText("");
    2
    urlField.setText("");
    Differences
    Expression1Expression2Difference
    serverurlFieldVARIABLE_NAME_MISMATCH
    javax.swing.JTextFieldorg.apache.jorphan.gui.JLabeledTextFieldSUBCLASS_TYPE_MISMATCH
    2
    urlField.setText("");
    3
    port.setText("");
    3
    port.setText("");
    3
    soapAction.setText("");
    Differences
    Expression1Expression2Difference
    portsoapActionVARIABLE_NAME_MISMATCH
    javax.swing.JTextFieldorg.apache.jorphan.gui.JLabeledTextFieldSUBCLASS_TYPE_MISMATCH
    3
    soapAction.setText("");
    4
    timeout.setText("");
    4
    timeout.setText("");
    4
    soapXml.setText("");
    Differences
    Expression1Expression2Difference
    timeoutsoapXmlVARIABLE_NAME_MISMATCH
    javax.swing.JTextFieldorg.apache.jorphan.gui.JLabeledTextAreaSUBCLASS_TYPE_MISMATCH
    4
    soapXml.setText("");
    5
    requestData.setText("");
    5
    requestData.setText("");
    6
    soapXmlFile.setFilename("");
    Differences
    Expression1Expression2Difference
    setTextsetFilenameMETHOD_INVOCATION_NAME_MISMATCH
    requestDatasoapXmlFileVARIABLE_NAME_MISMATCH
    javax.swing.JTextAreaorg.apache.jmeter.gui.util.FilePanelSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression requestData.setText("") is a void method call, and thus it cannot be parameterized
    Expression soapXmlFile.setFilename("") is a void method call, and thus it cannot be parameterized
    6
    soapXmlFile.setFilename("");
    6
    reUseConnection.setSelected(true);
    6
    reUseConnection.setSelected(true);
    5
    sendSoapAction.setSelected(true);
    Differences
    Expression1Expression2Difference
    reUseConnectionsendSoapActionVARIABLE_NAME_MISMATCH
    5
    sendSoapAction.setSelected(true);
    7
    setNoDelay.setSelected(false);
    7
    setNoDelay.setSelected(false);
    7
    useKeepAlive.setSelected(false);
    Differences
    Expression1Expression2Difference
    setNoDelayuseKeepAliveVARIABLE_NAME_MISMATCH
    7
    useKeepAlive.setSelected(false);
    Precondition Violations (2)
    Row Violation
    1Expression requestData.setText("") is a void method call, and thus it cannot be parameterized
    2Expression soapXmlFile.setFilename("") is a void method call, and thus it cannot be parameterized