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("");
cl.show(cards, "Delete"); tableModifyPanel.clear(); modify.setText(""); // $NON-NLS-1$ tableAddPanel.clear(); add.setText(""); // $NON-NLS-1$ searchbase.setText(""); // $NON-NLS-1$ searchfilter.setText("");
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/gui/RegexExtractorGui.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: 7 Number of AST nodes: 7
1
super.clearGui();
2
        
3
        useBody.setSelected(true);
4
        
5
        regexField
1
cl.show(cards, "Delete");
2
				tableModifyPanel.clear();
6
.setText(""); //$NON-NLS-1$
3
				modify.setText(""); // $NON-NLS-1$
7
        templateField.setText(""); //$NON-NLS-1$
8
        defaultFiel
4
				tableAddPanel.clear();
9
d.setText(""); //$NON-NLS-1$
5
				add.setText(""); // $NON-NLS-1$
10
        refNameField.setText(""); //$NON-NLS-1$
6
				searchbase.setText(""); // $NON-NLS-1$
11
        matchNumberField.setText("");
7
				searchfilter.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 comparisons49
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements7
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super.clearGui();
    1
    super.clearGui();
    11
    cl.show(cards, "Delete");
    Differences
    Expression1Expression2Difference
    super.clearGui()cl.show(cards,"Delete")TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    Expression cl.show(cards,"Delete") is a void method call, and thus it cannot be parameterized
    11
    cl.show(cards, "Delete");
    2
    useBody.setSelected(true);
    2
    useBody.setSelected(true);
    14
    tableAddPanel.clear();
    Differences
    Expression1Expression2Difference
    setSelectedclearMETHOD_INVOCATION_NAME_MISMATCH
    useBodytableAddPanelVARIABLE_NAME_MISMATCH
    javax.swing.JRadioButtonorg.apache.jmeter.config.gui.ArgumentsPanelSUBCLASS_TYPE_MISMATCH
    useBody.setSelected(true)tableAddPanel.clear()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    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
    Expression tableAddPanel.clear() is a void method call, and thus it cannot be parameterized
    14
    tableAddPanel.clear();
    3
    regexField.setText("");
    3
    regexField.setText("");
    16
    searchbase.setText("");
    Differences
    Expression1Expression2Difference
    regexFieldsearchbaseVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextFieldjavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    16
    searchbase.setText("");
    4
    templateField.setText("");
    4
    templateField.setText("");
    17
    searchfilter.setText("");
    Differences
    Expression1Expression2Difference
    templateFieldsearchfilterVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextFieldjavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    17
    searchfilter.setText("");
    5
    defaultField.setText("");
    5
    defaultField.setText("");
    15
    add.setText("");
    Differences
    Expression1Expression2Difference
    defaultFieldaddVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextFieldjavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    15
    add.setText("");
    6
    refNameField.setText("");
    6
    refNameField.setText("");
    13
    modify.setText("");
    Differences
    Expression1Expression2Difference
    refNameFieldmodifyVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextFieldjavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    13
    modify.setText("");
    7
    matchNumberField.setText("");
    7
    matchNumberField.setText("");
    12
    tableModifyPanel.clear();
    Differences
    Expression1Expression2Difference
    setTextclearMETHOD_INVOCATION_NAME_MISMATCH
    matchNumberFieldtableModifyPanelVARIABLE_NAME_MISMATCH
    org.apache.jorphan.gui.JLabeledTextFieldorg.apache.jmeter.config.gui.ArgumentsPanelSUBCLASS_TYPE_MISMATCH
    matchNumberField.setText("")tableModifyPanel.clear()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression matchNumberField.setText("") 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 matchNumberField.setText("") 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
    12
    tableModifyPanel.clear();
    Precondition Violations (10)
    Row Violation
    1Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    2Expression cl.show(cards,"Delete") is a void method call, and thus it cannot be parameterized
    3Expression useBody.setSelected(true) is a void method call, and thus it cannot be parameterized
    4Expression tableAddPanel.clear() is a void method call, and thus it cannot be parameterized
    5Expression useBody.setSelected(true) is a void method call, and thus it cannot be parameterized
    6Expression tableAddPanel.clear() is a void method call, and thus it cannot be parameterized
    7Expression matchNumberField.setText("") is a void method call, and thus it cannot be parameterized
    8Expression tableModifyPanel.clear() is a void method call, and thus it cannot be parameterized
    9Expression matchNumberField.setText("") is a void method call, and thus it cannot be parameterized
    10Expression tableModifyPanel.clear() is a void method call, and thus it cannot be parameterized