super.clearGui(); urlConfig.clear(); imageParser.setSelected(false);
super.clearGui(); username.setText(""); //$NON-NLS-1$ password.setText("");
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/config/gui/LoginConfigGui.java
Method name: void clearGui() Method name: void clearGui()
Number of AST nodes: 3 Number of AST nodes: 3
1
super.clearGui();
1
super.clearGui();
2
        urlConfig.clear();
2
        
3
        imageParser.setSelected(false
3
        username.setText(""); //$NON-NLS-1$
4
);
4
        password.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 comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    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
    username.setText("");
    Differences
    Expression1Expression2Difference
    clearsetTextMETHOD_INVOCATION_NAME_MISMATCH
    urlConfigusernameVARIABLE_NAME_MISMATCH
    org.apache.jmeter.protocol.http.config.gui.UrlConfigGuijavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    urlConfig.clear()username.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 username.setText("") is a void method call, and thus it cannot be parameterized
    Expression urlConfig cannot be unified with expression username , 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 username.setText("") is a void method call, and thus it cannot be parameterized
    2
    username.setText("");
                                                    
    3
    password.setText("");
    3
    imageParser.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 urlConfig.clear() is a void method call, and thus it cannot be parameterized
    5Expression username.setText("") is a void method call, and thus it cannot be parameterized
    6Expression urlConfig cannot be unified with expression username , 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 username.setText("") is a void method call, and thus it cannot be parameterized