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);
super.clearGui(); _fieldName.setText(""); //$NON-NLS-1$ _prefix.setText(""); //$NON-NLS-1$ _lowerBound.setText(ZERO); _upperBound.setText("10"); //$NON-NLS-1$ _increment.setText("1"); //$NON-NLS-1$ _suffix.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/http/modifier/gui/ParamModifierGui.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
        urlField.setText(""); //$NON-NLS-1$
3
        _fieldName.setText(""); //$NON-NLS-1$
4
        soapAction.setText(""); //$NON-NLS-1$
4
        _prefix.setText(""); //$NON-NLS-1$
5
        soapXml.setText(""); //$NON-NLS-1$
5
        
6
        sendSoapAction.setSelected(true);
7
        soapXmlFile.setFilename
6
_lowerBound.setText(ZERO);
7
        _upperBound.setText("10"); //$NON-NLS-1$
8
(""); //$NON-NLS-1$
8
        _increment.setText("1"); //$NON-NLS-1$
9
        useKeepAlive.setSelected(false);
9
        _suffix.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 comparisons49
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    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.clearGui();
    1
    super.clearGui();
    2
    urlField.setText("");
    2
    urlField.setText("");
    2
    _fieldName.setText("");
    Differences
    Expression1Expression2Difference
    urlField_fieldNameVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextFieldjavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    2
    _fieldName.setText("");
    3
    soapAction.setText("");
    3
    soapAction.setText("");
    3
    _prefix.setText("");
    Differences
    Expression1Expression2Difference
    soapAction_prefixVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextFieldjavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    3
    _prefix.setText("");
                                                              
    4
    _lowerBound.setText(ZERO);
                                                              
    5
    _upperBound.setText("10");
    4
    soapXml.setText("");
    4
    soapXml.setText("");
    7
    _suffix.setText("");
    Differences
    Expression1Expression2Difference
    soapXml_suffixVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextAreajavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    7
    _suffix.setText("");
    5
    sendSoapAction.setSelected(true);
                                                                            
    6
    soapXmlFile.setFilename("");
    6
    soapXmlFile.setFilename("");
    6
    _increment.setText("1");
    Differences
    Expression1Expression2Difference
    setFilenamesetTextMETHOD_INVOCATION_NAME_MISMATCH
    """1"LITERAL_VALUE_MISMATCH
    soapXmlFile_incrementVARIABLE_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 _increment.setText("1") is a void method call, and thus it cannot be parameterized
    6
    _increment.setText("1");
    7
    useKeepAlive.setSelected(false);
                                                                          
    Precondition Violations (2)
    Row Violation
    1Expression soapXmlFile.setFilename("") is a void method call, and thus it cannot be parameterized
    2Expression _increment.setText("1") is a void method call, and thus it cannot be parameterized