super.clearGui(); server.setText(""); //$NON-NLS-1$ remoteFile.setText(""); //$NON-NLS-1$ localFile.setText(""); //$NON-NLS-1$ inputData.setText(""); //$NON-NLS-1$ binaryMode.setSelected(false); saveResponseData.setSelected(false); getBox.setSelected(true); putBox.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/protocol/ftp/config/gui/FtpConfigGui.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
        server.setText(""); //$NON-NLS-1$
1
cl.show(cards, ""); // $NON-NLS-1$
4
        remoteFile
2
				tableAddPanel.clear();
5
.setText(""); //$NON-NLS-1$
3
				add.setText(""); // $NON-NLS-1$
6
        localFile
4
				tableModifyPanel.clear();
7
.setText(""); //$NON-NLS-1$
5
				modify.setText(""); // $NON-NLS-1$
8
        inputData.setText(""); //$NON-NLS-1$
6
				searchbase.setText(""); // $NON-NLS-1$
9
        binaryMode.setSelected(false);
10
        saveResponseData.setSelected(false);
11
        getBox.setS
7
				searchfilter.setText(""); // $NON-NLS-1$
12
elected(true);
8
				delete
13
        putBox.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 statements7
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    super.clearGui();
    1
    super.clearGui();
    32
    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
    32
    cl.show(cards, "");
    2
    server.setText("");
    2
    server.setText("");
    34
    add.setText("");
    Differences
    Expression1Expression2Difference
    serveraddVARIABLE_NAME_MISMATCH
    34
    add.setText("");
    3
    remoteFile.setText("");
    3
    remoteFile.setText("");
    37
    searchbase.setText("");
    Differences
    Expression1Expression2Difference
    remoteFilesearchbaseVARIABLE_NAME_MISMATCH
    37
    searchbase.setText("");
    4
    localFile.setText("");
    4
    localFile.setText("");
    36
    modify.setText("");
    Differences
    Expression1Expression2Difference
    localFilemodifyVARIABLE_NAME_MISMATCH
    36
    modify.setText("");
    5
    inputData.setText("");
    5
    inputData.setText("");
    38
    searchfilter.setText("");
    Differences
    Expression1Expression2Difference
    inputDatasearchfilterVARIABLE_NAME_MISMATCH
    javax.swing.JTextAreajavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    38
    searchfilter.setText("");
    6
    binaryMode.setSelected(false);
                                                                      
    7
    saveResponseData.setSelected(false);
                                                                                  
    8
    getBox.setSelected(true);
    8
    getBox.setSelected(true);
    33
    tableAddPanel.clear();
    Differences
    Expression1Expression2Difference
    setSelectedclearMETHOD_INVOCATION_NAME_MISMATCH
    getBoxtableAddPanelVARIABLE_NAME_MISMATCH
    javax.swing.JRadioButtonorg.apache.jmeter.config.gui.ArgumentsPanelSUBCLASS_TYPE_MISMATCH
    getBox.setSelected(true)tableAddPanel.clear()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression getBox.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 getBox.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
    33
    tableAddPanel.clear();
    9
    putBox.setSelected(false);
    9
    putBox.setSelected(false);
    35
    tableModifyPanel.clear();
    Differences
    Expression1Expression2Difference
    setSelectedclearMETHOD_INVOCATION_NAME_MISMATCH
    putBoxtableModifyPanelVARIABLE_NAME_MISMATCH
    javax.swing.JRadioButtonorg.apache.jmeter.config.gui.ArgumentsPanelSUBCLASS_TYPE_MISMATCH
    putBox.setSelected(false)tableModifyPanel.clear()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression putBox.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 putBox.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
    35
    tableModifyPanel.clear();
                                                  
    39
    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 getBox.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 getBox.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 putBox.setSelected(false) 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 putBox.setSelected(false) 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