super.clearGui(); filename.setText(""); //$NON-NLS-1$ errorsOnly.setSelected(false); successOnly.setSelected(false);
super.clearGui(); urlConfig.clear(); imageParser.setSelected(false);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/reporters/gui/ResultSaverGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/config/gui/HttpDefaultsGui.java
Method name: void clearGui() Method name: void clearGui()
Number of AST nodes: 4 Number of AST nodes: 3
1
super.clearGui();
1
super.clearGui();
2
        
2
        
3
        filename.setText(""); //$NON-NLS-1$
4
        errorsOnly.setSelected(false);
5
        successOnly
3
urlConfig.clear();
6
.setSelected(false);
4
        imageParser.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 comparisons12
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    super.clearGui();
    1
    super.clearGui();
    1
    super.clearGui();
    Preondition Violations
    Super method call super.clearGui(); cannot be extracted from method
    Super method call super.clearGui(); cannot be extracted from method
    1
    super.clearGui();
    2
    filename.setText("");
    2
    filename.setText("");
    2
    urlConfig.clear();
    Differences
    Expression1Expression2Difference
    setTextclearMETHOD_INVOCATION_NAME_MISMATCH
    filenameurlConfigVARIABLE_NAME_MISMATCH
    javax.swing.JTextFieldorg.apache.jmeter.protocol.http.config.gui.UrlConfigGuiSUBCLASS_TYPE_MISMATCH
    filename.setText("")urlConfig.clear()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression urlConfig.clear() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression filename.setText("") is a void method call, and thus it cannot be parameterized
    Expression urlConfig.clear() is a void method call, and thus it cannot be parameterized
    Expression filename cannot be unified with expression urlConfig , because common superclass javax.swing.JComponent does not declare member(s) public void setText(java.lang.String) , public void clear()
    Expression urlConfig.clear() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression filename.setText("") is a void method call, and thus it cannot be parameterized
    Expression urlConfig.clear() is a void method call, and thus it cannot be parameterized
    2
    urlConfig.clear();
    3
    errorsOnly.setSelected(false);
    3
    errorsOnly.setSelected(false);
    3
    imageParser.setSelected(false);
    Differences
    Expression1Expression2Difference
    errorsOnlyimageParserVARIABLE_NAME_MISMATCH
    3
    imageParser.setSelected(false);
    4
    successOnly.setSelected(false);
                                                                        
    Precondition Violations (9)
    Row Violation
    1Super method call super.clearGui(); cannot be extracted from method
    2Super method call super.clearGui(); cannot be extracted from method
    3Expression urlConfig.clear() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression filename.setText("") is a void method call, and thus it cannot be parameterized
    5Expression urlConfig.clear() is a void method call, and thus it cannot be parameterized
    6Expression filename cannot be unified with expression urlConfig , because common superclass javax.swing.JComponent does not declare member(s) public void setText(java.lang.String) , public void clear()
    7Expression urlConfig.clear() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8Expression filename.setText("") is a void method call, and thus it cannot be parameterized
    9Expression urlConfig.clear() is a void method call, and thus it cannot be parameterized