super.clearGui(); tableModel.clearData(); deleteButton.setEnabled(false); saveButton.setEnabled(false);
textMessage.setEnabled(true); messageFile.enableFile(false); randomFile.enableFile(false);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/gui/HeaderPanel.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/control/gui/JMSPublisherGui.java
Method name: void clearGui() Method name: void updateConfig(String)
Number of AST nodes: 4 Number of AST nodes: 3
1
super.clearGui();
2
        
3
        tableModel.clearData();
4
        deleteButton.setE
1
textMessage.setEnabled(true);
5
nabled(false);
2
			messageFile.enableFile(false);
6
        saveButton.setEnabled(false);
3
			randomFile.enableFile(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();
    2
    textMessage.setEnabled(true);
    Differences
    Expression1Expression2Difference
    super.clearGui()textMessage.setEnabled(true)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    Expression textMessage.setEnabled(true) is a void method call, and thus it cannot be parameterized
    2
    textMessage.setEnabled(true);
    2
    tableModel.clearData();
                                                        
    3
    deleteButton.setEnabled(false);
    3
    deleteButton.setEnabled(false);
    3
    messageFile.enableFile(false);
    Differences
    Expression1Expression2Difference
    setEnabledenableFileMETHOD_INVOCATION_NAME_MISMATCH
    deleteButtonmessageFileVARIABLE_NAME_MISMATCH
    javax.swing.JButtonorg.apache.jmeter.gui.util.FilePanelSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression deleteButton.setEnabled(false) is a void method call, and thus it cannot be parameterized
    Expression messageFile.enableFile(false) is a void method call, and thus it cannot be parameterized
    3
    messageFile.enableFile(false);
    4
    saveButton.setEnabled(false);
    4
    saveButton.setEnabled(false);
    4
    randomFile.enableFile(false);
    Differences
    Expression1Expression2Difference
    setEnabledenableFileMETHOD_INVOCATION_NAME_MISMATCH
    saveButtonrandomFileVARIABLE_NAME_MISMATCH
    javax.swing.JButtonorg.apache.jmeter.gui.util.FilePanelSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression saveButton.setEnabled(false) is a void method call, and thus it cannot be parameterized
    Expression randomFile.enableFile(false) is a void method call, and thus it cannot be parameterized
    4
    randomFile.enableFile(false);
    Precondition Violations (6)
    Row Violation
    1Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    2Expression textMessage.setEnabled(true) is a void method call, and thus it cannot be parameterized
    3Expression deleteButton.setEnabled(false) is a void method call, and thus it cannot be parameterized
    4Expression messageFile.enableFile(false) is a void method call, and thus it cannot be parameterized
    5Expression saveButton.setEnabled(false) is a void method call, and thus it cannot be parameterized
    6Expression randomFile.enableFile(false) is a void method call, and thus it cannot be parameterized