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);
cl.show(cards, ""); // $NON-NLS-1$ tableAddPanel.clear(); add.setText(""); // $NON-NLS-1$ tableModifyPanel.clear(); modify.setText(""); // $NON-NLS-1$ searchbase.setText(""); // $NON-NLS-1$ searchfilter.setText(""); // $NON-NLS-1$ delete.setText("");
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/protocol/ldap/config/gui/LdapConfigGui.java
Method name: void clearGui() Method name: void itemStateChanged(ItemEvent)
Number of AST nodes: 7 Number of AST nodes: 8
1
super
1
cl.show(cards, ""); // $NON-NLS-1$
2
.clearGui();
2
				tableAddPanel.clear();
3
        
4
        urlField.setText(""); //$NON-NLS-1$
3
				add.setText(""); // $NON-NLS-1$
5
        soapAction
4
				tableModifyPanel.clear();
6
.setText(""); //$NON-NLS-1$
5
				modify.setText(""); // $NON-NLS-1$
7
        soapXml.setText(""); //$NON-NLS-1$
6
				searchbase.setText(""); // $NON-NLS-1$
8
        sendSoapAction.setSelected(true);
9
        soapXmlFile.setFilename(""); //$NON-NLS-1$
7
				searchfilter.setText(""); // $NON-NLS-1$
10
        useKeepAlive.setSelected(false);
8
				delete.setText("");
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 comparisons56
  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 fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    super.clearGui();
    1
    super.clearGui();
    32
    cl.show(cards, "");
    Differences
    Expression1Expression2Difference
    super.clearGui()cl.show(cards,"")TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    Expression cl.show(cards,"") is a void method call, and thus it cannot be parameterized
    32
    cl.show(cards, "");
    2
    urlField.setText("");
    2
    urlField.setText("");
    36
    modify.setText("");
    Differences
    Expression1Expression2Difference
    urlFieldmodifyVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextFieldjavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    36
    modify.setText("");
    3
    soapAction.setText("");
    3
    soapAction.setText("");
    37
    searchbase.setText("");
    Differences
    Expression1Expression2Difference
    soapActionsearchbaseVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextFieldjavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    37
    searchbase.setText("");
    4
    soapXml.setText("");
    4
    soapXml.setText("");
    34
    add.setText("");
    Differences
    Expression1Expression2Difference
    soapXmladdVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextAreajavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    34
    add.setText("");
    5
    sendSoapAction.setSelected(true);
    5
    sendSoapAction.setSelected(true);
    35
    tableModifyPanel.clear();
    Differences
    Expression1Expression2Difference
    setSelectedclearMETHOD_INVOCATION_NAME_MISMATCH
    sendSoapActiontableModifyPanelVARIABLE_NAME_MISMATCH
    javax.swing.JCheckBoxorg.apache.jmeter.config.gui.ArgumentsPanelSUBCLASS_TYPE_MISMATCH
    sendSoapAction.setSelected(true)tableModifyPanel.clear()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression sendSoapAction.setSelected(true) is a void method call, and thus it cannot be parameterized
    Expression tableModifyPanel.clear() is a void method call, and thus it cannot be parameterized
    Expression sendSoapAction.setSelected(true) is a void method call, and thus it cannot be parameterized
    Expression tableModifyPanel.clear() is a void method call, and thus it cannot be parameterized
    35
    tableModifyPanel.clear();
    6
    soapXmlFile.setFilename("");
    6
    soapXmlFile.setFilename("");
    38
    searchfilter.setText("");
    Differences
    Expression1Expression2Difference
    setFilenamesetTextMETHOD_INVOCATION_NAME_MISMATCH
    soapXmlFilesearchfilterVARIABLE_NAME_MISMATCH
    org.apache.jmeter.gui.util.FilePaneljavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression soapXmlFile.setFilename("") is a void method call, and thus it cannot be parameterized
    Expression searchfilter.setText("") is a void method call, and thus it cannot be parameterized
    38
    searchfilter.setText("");
    7
    useKeepAlive.setSelected(false);
    7
    useKeepAlive.setSelected(false);
    33
    tableAddPanel.clear();
    Differences
    Expression1Expression2Difference
    setSelectedclearMETHOD_INVOCATION_NAME_MISMATCH
    useKeepAlivetableAddPanelVARIABLE_NAME_MISMATCH
    javax.swing.JCheckBoxorg.apache.jmeter.config.gui.ArgumentsPanelSUBCLASS_TYPE_MISMATCH
    useKeepAlive.setSelected(false)tableAddPanel.clear()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression useKeepAlive.setSelected(false) is a void method call, and thus it cannot be parameterized
    Expression tableAddPanel.clear() is a void method call, and thus it cannot be parameterized
    Expression useKeepAlive.setSelected(false) is a void method call, and thus it cannot be parameterized
    Expression tableAddPanel.clear() is a void method call, and thus it cannot be parameterized
    33
    tableAddPanel.clear();
                                                  
    39
    delete.setText("");
    Precondition Violations (12)
    Row Violation
    1Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    2Expression cl.show(cards,"") is a void method call, and thus it cannot be parameterized
    3Expression sendSoapAction.setSelected(true) is a void method call, and thus it cannot be parameterized
    4Expression tableModifyPanel.clear() is a void method call, and thus it cannot be parameterized
    5Expression sendSoapAction.setSelected(true) is a void method call, and thus it cannot be parameterized
    6Expression tableModifyPanel.clear() is a void method call, and thus it cannot be parameterized
    7Expression soapXmlFile.setFilename("") is a void method call, and thus it cannot be parameterized
    8Expression searchfilter.setText("") is a void method call, and thus it cannot be parameterized
    9Expression useKeepAlive.setSelected(false) is a void method call, and thus it cannot be parameterized
    10Expression tableAddPanel.clear() is a void method call, and thus it cannot be parameterized
    11Expression useKeepAlive.setSelected(false) is a void method call, and thus it cannot be parameterized
    12Expression tableAddPanel.clear() is a void method call, and thus it cannot be parameterized