super.clearGui(); xpathQueryField.setText(""); // $NON-NLS-1$ defaultField.setText(""); // $NON-NLS-1$ refNameField.setText(""); // $NON-NLS-1$ tolerant.setSelected(false); nameSpace.setSelected(true); quiet.setSelected(true); reportErrors.setSelected(false); showWarnings.setSelected(false);
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("");
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/gui/XPathExtractorGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LdapConfigGui.java
Method name: void clearGui() Method name: void itemStateChanged(ItemEvent)
Number of AST nodes: 9 Number of AST nodes: 8
1
super.clearGui();
2
        
3
        xpathQueryField.setText(""); // $NON-NLS-1$
4
        defaultField
1
cl.show(cards, ""); // $NON-NLS-1$
2
			tableAddPanel.clear();
3
			add.setText(""); // $NON-NLS-1$
4
			tableModifyPanel.clear();
5
.setText(""); // $NON-NLS-1$
5
			modify.setText(""); // $NON-NLS-1$
6
        refNameField.setText(""); // $NON-NLS-1$
6
			searchbase.setText(""); // $NON-NLS-1$
7
        tolerant.setSelected(false);
8
        nameSpace.setSelected(true);
9
        quiet.setSelected(true);
10
        reportErrors.setS
7
			searchfilter.setText(""); // $NON-NLS-1$
11
elected(false);
8
			delete
12
        showWarnings.setSelected(false);
9
.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 comparisons72
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment3
    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
    1
    super.clearGui();
    1
    super.clearGui();
    40
    cl.show(cards, "");
    Differences
    Expression1Expression2Difference
    super.clearGui()cl.show(cards,"")TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    Expression cl.show(cards,"") is a void method call, and thus it cannot be parameterized
    40
    cl.show(cards, "");
    2
    xpathQueryField.setText("");
    2
    xpathQueryField.setText("");
    45
    searchbase.setText("");
    Differences
    Expression1Expression2Difference
    xpathQueryFieldsearchbaseVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextFieldjavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    45
    searchbase.setText("");
    3
    defaultField.setText("");
    3
    defaultField.setText("");
    42
    add.setText("");
    Differences
    Expression1Expression2Difference
    defaultFieldaddVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextFieldjavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    42
    add.setText("");
    4
    refNameField.setText("");
    4
    refNameField.setText("");
    44
    modify.setText("");
    Differences
    Expression1Expression2Difference
    refNameFieldmodifyVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextFieldjavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    44
    modify.setText("");
    5
    tolerant.setSelected(false);
                                                                  
    6
    nameSpace.setSelected(true);
                                                                  
    7
    quiet.setSelected(true);
                                                          
    8
    reportErrors.setSelected(false);
    8
    reportErrors.setSelected(false);
    43
    tableModifyPanel.clear();
    Differences
    Expression1Expression2Difference
    setSelectedclearMETHOD_INVOCATION_NAME_MISMATCH
    reportErrorstableModifyPanelVARIABLE_NAME_MISMATCH
    javax.swing.JCheckBoxorg.apache.jmeter.config.gui.ArgumentsPanelSUBCLASS_TYPE_MISMATCH
    reportErrors.setSelected(false)tableModifyPanel.clear()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression reportErrors.setSelected(false) is a void method call, and thus it cannot be parameterized
    Expression tableModifyPanel.clear() is a void method call, and thus it cannot be parameterized
    Expression reportErrors.setSelected(false) is a void method call, and thus it cannot be parameterized
    Expression tableModifyPanel.clear() is a void method call, and thus it cannot be parameterized
    43
    tableModifyPanel.clear();
    9
    showWarnings.setSelected(false);
    9
    showWarnings.setSelected(false);
    41
    tableAddPanel.clear();
    Differences
    Expression1Expression2Difference
    setSelectedclearMETHOD_INVOCATION_NAME_MISMATCH
    showWarningstableAddPanelVARIABLE_NAME_MISMATCH
    javax.swing.JCheckBoxorg.apache.jmeter.config.gui.ArgumentsPanelSUBCLASS_TYPE_MISMATCH
    showWarnings.setSelected(false)tableAddPanel.clear()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression showWarnings.setSelected(false) 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 showWarnings.setSelected(false) 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
    41
    tableAddPanel.clear();
                                                              
    46
    searchfilter.setText("");
                                                  
    47
    delete.setText("");
    Precondition Violations (10)
    Row Violation
    1Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    2Expression cl.show(cards,"") is a void method call, and thus it cannot be parameterized
    3Expression reportErrors.setSelected(false) is a void method call, and thus it cannot be parameterized
    4Expression tableModifyPanel.clear() is a void method call, and thus it cannot be parameterized
    5Expression reportErrors.setSelected(false) is a void method call, and thus it cannot be parameterized
    6Expression tableModifyPanel.clear() is a void method call, and thus it cannot be parameterized
    7Expression showWarnings.setSelected(false) is a void method call, and thus it cannot be parameterized
    8Expression tableAddPanel.clear() is a void method call, and thus it cannot be parameterized
    9Expression showWarnings.setSelected(false) is a void method call, and thus it cannot be parameterized
    10Expression tableAddPanel.clear() is a void method call, and thus it cannot be parameterized