super.clearGui(); urlConfig.clear(); imageParser.setSelected(false);
super.clearGui(); inputVal.setText(""); // $NON-NLS-1$ returnVal.setText(""); // $NON-NLS-1$ useSeparator.setSelected(true);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/config/gui/HttpDefaultsGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/ForeachControlPanel.java
Method name: void clearGui() Method name: void clearGui()
Number of AST nodes: 3 Number of AST nodes: 4
1
super.clearGui();
1
super.clearGui();
2
        urlConfig.clear();
2
        
3
        imageParse
3
        inputVal.setText(""); // $NON-NLS-1$
4
        returnVal.setText(""); // $NON-NLS-1$
4
r.setSelected(false);
5
        useSeparator.setSelected(true);
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 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();
    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
    urlConfig.clear();
    2
    urlConfig.clear();
    2
    inputVal.setText("");
    Differences
    Expression1Expression2Difference
    clearsetTextMETHOD_INVOCATION_NAME_MISMATCH
    urlConfiginputValVARIABLE_NAME_MISMATCH
    org.apache.jmeter.protocol.http.config.gui.UrlConfigGuijavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    urlConfig.clear()inputVal.setText("")ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression urlConfig.clear() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression urlConfig.clear() is a void method call, and thus it cannot be parameterized
    Expression inputVal.setText("") is a void method call, and thus it cannot be parameterized
    Expression urlConfig cannot be unified with expression inputVal , because common superclass javax.swing.JComponent does not declare member(s) public void clear() , public void setText(java.lang.String)
    Expression urlConfig.clear() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression urlConfig.clear() is a void method call, and thus it cannot be parameterized
    Expression inputVal.setText("") is a void method call, and thus it cannot be parameterized
    2
    inputVal.setText("");
                                                      
    3
    returnVal.setText("");
    3
    imageParser.setSelected(false);
    3
    imageParser.setSelected(false);
    4
    useSeparator.setSelected(true);
    Differences
    Expression1Expression2Difference
    falsetrueLITERAL_VALUE_MISMATCH
    imageParseruseSeparatorVARIABLE_NAME_MISMATCH
    4
    useSeparator.setSelected(true);
    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 urlConfig.clear() is a void method call, and thus it cannot be parameterized
    5Expression inputVal.setText("") is a void method call, and thus it cannot be parameterized
    6Expression urlConfig cannot be unified with expression inputVal , because common superclass javax.swing.JComponent does not declare member(s) public void clear() , public void setText(java.lang.String)
    7Expression urlConfig.clear() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8Expression urlConfig.clear() is a void method call, and thus it cannot be parameterized
    9Expression inputVal.setText("") is a void method call, and thus it cannot be parameterized