super.clearGui(); docTypeBox.setSelectedIndex(0); htmlRadioButton.setSelected(true); xhtmlRadioButton.setSelected(false); xmlRadioButton.setSelected(false); errorThresholdField.setText("0"); //$NON-NLS-1$ warningThresholdField.setText("0"); //$NON-NLS-1$ filePanel.setFilename(""); //$NON-NLS-1$ errorsOnly.setSelected(false);
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);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/assertions/gui/HTMLAssertionGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/gui/XPathExtractorGui.java
Method name: void clearGui() Method name: void clearGui()
Number of AST nodes: 9 Number of AST nodes: 9
1
super.clearGui();
1
super.clearGui();
2
        
2
        docTypeBox.setSelectedIndex(0);
3
        
3
        htmlRadioButton.setSelected(true);
4
        xhtmlRadioButton.setSelected(false);
5
        xmlRadioButton
4
xpathQueryField.setText(""); // $NON-NLS-1$
5
        defaultField.setText(""); // $NON-NLS-1$
6
        refNameField.setText(""); // $NON-NLS-1$
6
.setSelected(false);
7
        tolerant.setSelected(false);
7
        errorThresholdField.setText("0"); //$NON-NLS-1$
8
        
8
        warningThresholdField.setText("0"); //$NON-NLS-1$
9
        filePanel.setFilename(""); //$NON-NLS-1$
10
        errorsOnly
9
nameSpace.setSelected(true);
10
        quiet.setSelected(true);
11
        reportErrors.setSelected(false);
11
.setSelected(false);
12
        showWarnings.setSelected(false);
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 comparisons81
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements8
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super.clearGui();
    1
    super.clearGui();
    2
    docTypeBox.setSelectedIndex(0);
                                                                        
    3
    htmlRadioButton.setSelected(true);
    3
    htmlRadioButton.setSelected(true);
    6
    nameSpace.setSelected(true);
    Differences
    Expression1Expression2Difference
    htmlRadioButtonnameSpaceVARIABLE_NAME_MISMATCH
    javax.swing.JRadioButtonjavax.swing.JCheckBoxSUBCLASS_TYPE_MISMATCH
    6
    nameSpace.setSelected(true);
    4
    xhtmlRadioButton.setSelected(false);
    4
    xhtmlRadioButton.setSelected(false);
    8
    reportErrors.setSelected(false);
    Differences
    Expression1Expression2Difference
    xhtmlRadioButtonreportErrorsVARIABLE_NAME_MISMATCH
    javax.swing.JRadioButtonjavax.swing.JCheckBoxSUBCLASS_TYPE_MISMATCH
    8
    reportErrors.setSelected(false);
    5
    xmlRadioButton.setSelected(false);
    5
    xmlRadioButton.setSelected(false);
    5
    tolerant.setSelected(false);
    Differences
    Expression1Expression2Difference
    xmlRadioButtontolerantVARIABLE_NAME_MISMATCH
    javax.swing.JRadioButtonjavax.swing.JCheckBoxSUBCLASS_TYPE_MISMATCH
    5
    tolerant.setSelected(false);
    6
    errorThresholdField.setText("0");
    6
    errorThresholdField.setText("0");
    4
    refNameField.setText("");
    Differences
    Expression1Expression2Difference
    "0"""LITERAL_VALUE_MISMATCH
    errorThresholdFieldrefNameFieldVARIABLE_NAME_MISMATCH
    javax.swing.JTextFieldorg.apache.jorphan.gui.JLabeledTextFieldSUBCLASS_TYPE_MISMATCH
    4
    refNameField.setText("");
    7
    warningThresholdField.setText("0");
    7
    warningThresholdField.setText("0");
    2
    xpathQueryField.setText("");
    Differences
    Expression1Expression2Difference
    "0"""LITERAL_VALUE_MISMATCH
    warningThresholdFieldxpathQueryFieldVARIABLE_NAME_MISMATCH
    javax.swing.JTextFieldorg.apache.jorphan.gui.JLabeledTextFieldSUBCLASS_TYPE_MISMATCH
    2
    xpathQueryField.setText("");
    8
    filePanel.setFilename("");
    8
    filePanel.setFilename("");
    3
    defaultField.setText("");
    Differences
    Expression1Expression2Difference
    setFilenamesetTextMETHOD_INVOCATION_NAME_MISMATCH
    filePaneldefaultFieldVARIABLE_NAME_MISMATCH
    org.apache.jmeter.gui.util.FilePanelorg.apache.jorphan.gui.JLabeledTextFieldSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression filePanel.setFilename("") is a void method call, and thus it cannot be parameterized
    Expression defaultField.setText("") is a void method call, and thus it cannot be parameterized
    3
    defaultField.setText("");
                                                          
    7
    quiet.setSelected(true);
    9
    errorsOnly.setSelected(false);
    9
    errorsOnly.setSelected(false);
    9
    showWarnings.setSelected(false);
    Differences
    Expression1Expression2Difference
    errorsOnlyshowWarningsVARIABLE_NAME_MISMATCH
    9
    showWarnings.setSelected(false);
    Precondition Violations (2)
    Row Violation
    1Expression filePanel.setFilename("") is a void method call, and thus it cannot be parameterized
    2Expression defaultField.setText("") is a void method call, and thus it cannot be parameterized