rangeField.setText(DEFAULT_RANGE); delayField.setText(DEFAULT_DELAY); super.clearGui();
super(); mLabel.setText(pLabel); choiceList = new JComboBox(items); choiceList.setEditable(editable); init();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/timers/gui/GaussianRandomTimerGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/gui/JLabeledChoice.java
Method name: void clearGui() Method name: void JLabeledChoice(String, String[], boolean)
Number of AST nodes: 3 Number of AST nodes: 5
1
rangeFi
1
super();
2
eld.setText(DEFAULT_RANGE);
2
		mLabel.setText(
3
		delayField.setText(DEFAULT_DELAY);
4
		super.clearGui
3
pLabel);
4
		choiceList = new JComboBox(items);
5
		choiceList.setEditable(editable);
5
();
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 comparisons15
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    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();
    1
    rangeField.setText(DEFAULT_RANGE);
    1
    rangeField.setText(DEFAULT_RANGE);
    5
    init();
    Differences
    Expression1Expression2Difference
    setTextinitMETHOD_INVOCATION_NAME_MISMATCH
    rangeField.setText(DEFAULT_RANGE)init()ARGUMENT_NUMBER_MISMATCH
    rangeFieldMISSING_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 rangeField.setText(DEFAULT_RANGE) 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 rangeField.setText(DEFAULT_RANGE) 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
    delayField.setText(DEFAULT_DELAY);
    2
    delayField.setText(DEFAULT_DELAY);
    2
    mLabel.setText(pLabel);
    Differences
    Expression1Expression2Difference
    DEFAULT_DELAYpLabelVARIABLE_NAME_MISMATCH
    delayFieldmLabelVARIABLE_NAME_MISMATCH
    javax.swing.JTextFieldjavax.swing.JLabelSUBCLASS_TYPE_MISMATCH
    2
    mLabel.setText(pLabel);
                                                                          
    3
    choiceList = new JComboBox(items);
    3
    super.clearGui();
    3
    super.clearGui();
    4
    choiceList.setEditable(editable);
    Differences
    Expression1Expression2Difference
    super.clearGui()choiceList.setEditable(editable)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression super.clearGui() 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);
    Precondition Violations (8)
    Row Violation
    1Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression rangeField.setText(DEFAULT_RANGE) 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 rangeField.setText(DEFAULT_RANGE) 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 super.clearGui() 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