quiet.setEnabled(tidySelected); reportErrors.setEnabled(tidySelected); showWarnings.setEnabled(tidySelected); nameSpace.setEnabled(!tidySelected);
super(); choiceList = new JComboBox(); mLabel.setText(pLabel); choiceList.setEditable(editable); init();
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/jorphan/gui/JLabeledChoice.java
Method name: void setTidyOptions(boolean) Method name: void JLabeledChoice(String, boolean)
Number of AST nodes: 4 Number of AST nodes: 5
1
quiet.setEnabled(tidySelected);
2
		reportErrors.setEnabled(tidySelected
1
super();
2
		choiceList = new JComboBox();
3
);
3
		mLabel.setText(pLabel);
4
		showWarnings.setEnabled(tidySelected);
4
		choiceList.setEditable
5
		nameSpace.setEnabled(!tidySelected
5
(editable);
6
);
6
		init();
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 comparisons20
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment3
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
                          
    1
    super();
                                                                
    2
    choiceList = new JComboBox();
                                                        
    3
    mLabel.setText(pLabel);
    1
    quiet.setEnabled(tidySelected);
    1
    quiet.setEnabled(tidySelected);
    5
    init();
    Differences
    Expression1Expression2Difference
    setEnabledinitMETHOD_INVOCATION_NAME_MISMATCH
    quiet.setEnabled(tidySelected)init()ARGUMENT_NUMBER_MISMATCH
    quietMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method init
    Expression quiet.setEnabled(tidySelected) is a void method call, and thus it cannot be parameterized
    Expression init() is a void method call, and thus it cannot be parameterized
    Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method init
    Expression quiet.setEnabled(tidySelected) is a void method call, and thus it cannot be parameterized
    Expression init() is a void method call, and thus it cannot be parameterized
    5
    init();
    2
    reportErrors.setEnabled(tidySelected);
    2
    reportErrors.setEnabled(tidySelected);
    4
    choiceList.setEditable(editable);
    Differences
    Expression1Expression2Difference
    setEnabledsetEditableMETHOD_INVOCATION_NAME_MISMATCH
    tidySelectededitableVARIABLE_NAME_MISMATCH
    reportErrorschoiceListVARIABLE_NAME_MISMATCH
    javax.swing.JCheckBoxjavax.swing.JComboBoxSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression reportErrors.setEnabled(tidySelected) is a void method call, and thus it cannot be parameterized
    Expression choiceList.setEditable(editable) is a void method call, and thus it cannot be parameterized
    4
    choiceList.setEditable(editable);
    3
    showWarnings.setEnabled(tidySelected);
                                                                                      
    4
    nameSpace.setEnabled(!tidySelected);
                                                                                  
    Precondition Violations (8)
    Row Violation
    1Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression quiet.setEnabled(tidySelected) is a void method call, and thus it cannot be parameterized
    3Expression init() is a void method call, and thus it cannot be parameterized
    4Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression quiet.setEnabled(tidySelected) is a void method call, and thus it cannot be parameterized
    6Expression init() is a void method call, and thus it cannot be parameterized
    7Expression reportErrors.setEnabled(tidySelected) is a void method call, and thus it cannot be parameterized
    8Expression choiceList.setEditable(editable) is a void method call, and thus it cannot be parameterized