setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP)); setBorder(makeBorder()); add(makeTitlePanel()); parent = new JCheckBox(JMeterUtils.getResString("transaction_controller_parent")); // $NON-NLS-1$ add(parent);
setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP)); setBorder(makeBorder()); add(makeTitlePanel()); style = new JCheckBox(JMeterUtils.getResString("ignore_subcontrollers")); // $NON-NLS-1$ add(style);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/TransactionControllerGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/RandomControlGui.java
Method name: void init() Method name: void init()
Number of AST nodes: 5 Number of AST nodes: 5
1
setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP));
1
setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP));
2
		setBorder(makeBorder());
2
		setBorder(makeBorder());
3
		add(makeTitlePanel());
3
		add(makeTitlePanel());
4
		parent
5
 = new JCheckBox(JMeterUtils.getResString("transaction_controller_parent")); // $NON-NLS-1$
4
		style = new JCheckBox(JMeterUtils.getResString("ignore_subcontrollers")); // $NON-NLS-1$
6
		add(parent);
5
		add(style);
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 comparisons17
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    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
    setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP));
    1
    setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP));
    2
    setBorder(makeBorder());
    2
    setBorder(makeBorder());
    3
    add(makeTitlePanel());
    3
    add(makeTitlePanel());
    4
    parent = new JCheckBox(JMeterUtils.getResString("transaction_controller_parent"));
    4
    parent = new JCheckBox(JMeterUtils.getResString("transaction_controller_parent"));
    4
    style = new JCheckBox(JMeterUtils.getResString("ignore_subcontrollers"));
    Differences
    Expression1Expression2Difference
    parentstyleVARIABLE_NAME_MISMATCH
    "transaction_controller_parent""ignore_subcontrollers"LITERAL_VALUE_MISMATCH
    Preondition Violations
    Expression parent is a field being modified, and thus it cannot be parameterized
    Expression style is a field being modified, and thus it cannot be parameterized
    4
    style = new JCheckBox(JMeterUtils.getResString("ignore_subcontrollers"));
    5
    add(parent);
    5
    add(parent);
    5
    add(style);
    Differences
    Expression1Expression2Difference
    parentstyleVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression parent cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression style cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5
    add(style);
    Precondition Violations (4)
    Row Violation
    1Expression parent is a field being modified, and thus it cannot be parameterized
    2Expression style is a field being modified, and thus it cannot be parameterized
    3Expression parent cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression style cannot be parameterized, because it has dependencies to/from statements that will be extracted