textMessage.setEnabled(true); messageFile.enableFile(false); randomFile.enableFile(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/jms/control/gui/JMSPublisherGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/ForeachControlPanel.java
Method name: void updateConfig(String) Method name: void clearGui()
Number of AST nodes: 3 Number of AST nodes: 4
1
textMessage.setEnabled(true);
2
			messageFile.enableFile(f
1
super.clearGui();
2
        
3
        inputVal.setText(""); // $NON-NLS-1$
3
alse);
4
        returnVal.se
4
			randomFile.enableFile(fals
5
tText(""); // $NON-NLS-1$
5
e);
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 comparisons12
  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 fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    2
    textMessage.setEnabled(true);
    2
    textMessage.setEnabled(true);
    1
    super.clearGui();
    Differences
    Expression1Expression2Difference
    textMessage.setEnabled(true)super.clearGui()TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression textMessage.setEnabled(true) is a void method call, and thus it cannot be parameterized
    Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    1
    super.clearGui();
                                                    
    2
    inputVal.setText("");
                                                      
    3
    returnVal.setText("");
    3
    messageFile.enableFile(false);
    3
    messageFile.enableFile(false);
    4
    useSeparator.setSelected(true);
    Differences
    Expression1Expression2Difference
    enableFilesetSelectedMETHOD_INVOCATION_NAME_MISMATCH
    falsetrueLITERAL_VALUE_MISMATCH
    messageFileuseSeparatorVARIABLE_NAME_MISMATCH
    org.apache.jmeter.gui.util.FilePaneljavax.swing.JCheckBoxSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression messageFile.enableFile(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);
    4
    randomFile.enableFile(false);
                                                                    
    Precondition Violations (4)
    Row Violation
    1Expression textMessage.setEnabled(true) is a void method call, and thus it cannot be parameterized
    2Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    3Expression messageFile.enableFile(false) is a void method call, and thus it cannot be parameterized
    4Expression useSeparator.setSelected(true) is a void method call, and thus it cannot be parameterized