super.clearGui(); tableModel.clearData(); deleteButton.setEnabled(false); saveButton.setEnabled(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/gui/AuthPanel.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: 4 Number of AST nodes: 4
1
super.clearGui();
1
super.clearGui();
2
        
2
        tableModel.clearData();
3
        
3
        deleteButton.setEnabled(false);
4
inputVal.setText(""); // $NON-NLS-1$
5
        returnVal.setText(""); // $NON-NLS-1$
4
        saveButton.setEnabled(false);
6
        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 comparisons16
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    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();
    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
    inputVal.setText("");
    2
    tableModel.clearData();
    2
    tableModel.clearData();
    Preondition Violations
    Unmatched statement tableModel.clearData(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                        
                                                      
    3
    returnVal.setText("");
    3
    deleteButton.setEnabled(false);
                                                                        
    4
    saveButton.setEnabled(false);
    4
    saveButton.setEnabled(false);
    4
    useSeparator.setSelected(true);
    Differences
    Expression1Expression2Difference
    falsetrueLITERAL_VALUE_MISMATCH
    setEnabledsetSelectedMETHOD_INVOCATION_NAME_MISMATCH
    saveButtonuseSeparatorVARIABLE_NAME_MISMATCH
    javax.swing.JButtonjavax.swing.JCheckBoxSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression saveButton.setEnabled(false) is a void method call, and thus it cannot be parameterized
    Expression useSeparator.setSelected(true) is a void method call, and thus it cannot be parameterized
    4
    useSeparator.setSelected(true);
    Precondition Violations (5)
    Row Violation
    1Super method call super.clearGui(); cannot be extracted from method
    2Super method call super.clearGui(); cannot be extracted from method
    3Unmatched statement tableModel.clearData(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Expression saveButton.setEnabled(false) is a void method call, and thus it cannot be parameterized
    5Expression useSeparator.setSelected(true) is a void method call, and thus it cannot be parameterized