cl.show(cards, ""); // $NON-NLS-1$ tableAddPanel.clear(); add.setText(""); // $NON-NLS-1$ tableModifyPanel.clear(); modify.setText(""); // $NON-NLS-1$ searchbase.setText(""); // $NON-NLS-1$ searchfilter.setText(""); // $NON-NLS-1$ delete.setText("");
super.clearGui(); useBody.setSelected(true); regexField.setText(""); //$NON-NLS-1$ templateField.setText(""); //$NON-NLS-1$ defaultField.setText(""); //$NON-NLS-1$ refNameField.setText(""); //$NON-NLS-1$ matchNumberField.setText("");
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LdapConfigGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/gui/RegexExtractorGui.java
Method name: void itemStateChanged(ItemEvent) Method name: void clearGui()
Number of AST nodes: 8 Number of AST nodes: 7
1
cl.show(cards, ""); // $NON-NLS-1$
2
			tableAddPanel.clear();
3
			ad
1
super.clearGui();
2
        
3
        useBody.setSelected(true);
4
        
4
d.setText(""); // $NON-NLS-1$
5
        regexField.setText(""); //$NON-NLS-1$
5
			tableModifyPanel.clear();
6
			modify.setText(""); // $NON-NLS-1$
6
        templateField.setText(""); //$NON-NLS-1$
7
			searchbase.setText(""); // $NON-NLS-1$
7
        defaultField.setText(""); //$NON-NLS-1$
8
			searchfilter.setText(""); // $NON-NLS-1$
8
        refNameField.setText(""); //$NON-NLS-1$
9
			delete.setText("");
9
        matchNumberField.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 comparisons56
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements7
    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
    40
    cl.show(cards, "");
    40
    cl.show(cards, "");
    1
    super.clearGui();
    Differences
    Expression1Expression2Difference
    cl.show(cards,"")super.clearGui()TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression cl.show(cards,"") 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();
    41
    tableAddPanel.clear();
    41
    tableAddPanel.clear();
    2
    useBody.setSelected(true);
    Differences
    Expression1Expression2Difference
    clearsetSelectedMETHOD_INVOCATION_NAME_MISMATCH
    tableAddPaneluseBodyVARIABLE_NAME_MISMATCH
    org.apache.jmeter.config.gui.ArgumentsPaneljavax.swing.JRadioButtonSUBCLASS_TYPE_MISMATCH
    tableAddPanel.clear()useBody.setSelected(true)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression tableAddPanel.clear() is a void method call, and thus it cannot be parameterized
    Expression useBody.setSelected(true) is a void method call, and thus it cannot be parameterized
    Expression tableAddPanel.clear() is a void method call, and thus it cannot be parameterized
    Expression useBody.setSelected(true) is a void method call, and thus it cannot be parameterized
    2
    useBody.setSelected(true);
    42
    add.setText("");
    42
    add.setText("");
    6
    refNameField.setText("");
    Differences
    Expression1Expression2Difference
    addrefNameFieldVARIABLE_NAME_MISMATCH
    javax.swing.JTextFieldorg.apache.jorphan.gui.JLabeledTextFieldSUBCLASS_TYPE_MISMATCH
    6
    refNameField.setText("");
    43
    tableModifyPanel.clear();
                                                              
    44
    modify.setText("");
    44
    modify.setText("");
    4
    templateField.setText("");
    Differences
    Expression1Expression2Difference
    modifytemplateFieldVARIABLE_NAME_MISMATCH
    javax.swing.JTextFieldorg.apache.jorphan.gui.JLabeledTextFieldSUBCLASS_TYPE_MISMATCH
    4
    templateField.setText("");
    45
    searchbase.setText("");
    45
    searchbase.setText("");
    7
    matchNumberField.setText("");
    Differences
    Expression1Expression2Difference
    searchbasematchNumberFieldVARIABLE_NAME_MISMATCH
    javax.swing.JTextFieldorg.apache.jorphan.gui.JLabeledTextFieldSUBCLASS_TYPE_MISMATCH
    7
    matchNumberField.setText("");
    46
    searchfilter.setText("");
    46
    searchfilter.setText("");
    5
    defaultField.setText("");
    Differences
    Expression1Expression2Difference
    searchfilterdefaultFieldVARIABLE_NAME_MISMATCH
    javax.swing.JTextFieldorg.apache.jorphan.gui.JLabeledTextFieldSUBCLASS_TYPE_MISMATCH
    5
    defaultField.setText("");
    47
    delete.setText("");
    47
    delete.setText("");
    3
    regexField.setText("");
    Differences
    Expression1Expression2Difference
    deleteregexFieldVARIABLE_NAME_MISMATCH
    javax.swing.JTextFieldorg.apache.jorphan.gui.JLabeledTextFieldSUBCLASS_TYPE_MISMATCH
    3
    regexField.setText("");
    Precondition Violations (6)
    Row Violation
    1Expression cl.show(cards,"") 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 tableAddPanel.clear() is a void method call, and thus it cannot be parameterized
    4Expression useBody.setSelected(true) is a void method call, and thus it cannot be parameterized
    5Expression tableAddPanel.clear() is a void method call, and thus it cannot be parameterized
    6Expression useBody.setSelected(true) is a void method call, and thus it cannot be parameterized