stopTestBox.setSelected(te.getOnErrorStopTest()); stopThrdBox.setSelected(te.getOnErrorStopThread()); continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest());
super.clearGui(); filename.setText(""); //$NON-NLS-1$ errorsOnly.setSelected(false); successOnly.setSelected(false);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/threads/gui/ThreadGroupGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/reporters/gui/ResultSaverGui.java
Method name: void setSampleErrorBoxes(ThreadGroup) Method name: void clearGui()
Number of AST nodes: 3 Number of AST nodes: 4
1
stopTestBox.setSelected(t
1
super.clearGui();
2
        
2
e.getOnErrorStopTest());
3
        filename.setText(
3
		stopThrdBox.setSelected(te.getOnErrorStopThread());
4
		continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest()
4
""); //$NON-NLS-1$
5
        errorsOnly.setSelected(false);
5
);
6
        successOnly.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 comparisons12
  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 fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    stopTestBox.setSelected(te.getOnErrorStopTest());
    1
    stopTestBox.setSelected(te.getOnErrorStopTest());
    1
    super.clearGui();
    Differences
    Expression1Expression2Difference
    stopTestBox.setSelected(te.getOnErrorStopTest())super.clearGui()TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression stopTestBox.setSelected(te.getOnErrorStopTest()) is a void method call, and thus it cannot be parameterized
    Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    1
    super.clearGui();
                                                    
    2
    filename.setText("");
    2
    stopThrdBox.setSelected(te.getOnErrorStopThread());
    2
    stopThrdBox.setSelected(te.getOnErrorStopThread());
    4
    successOnly.setSelected(false);
    Differences
    Expression1Expression2Difference
    te.getOnErrorStopThread()falseTYPE_COMPATIBLE_REPLACEMENT
    stopThrdBoxsuccessOnlyVARIABLE_NAME_MISMATCH
    javax.swing.JRadioButtonjavax.swing.JCheckBoxSUBCLASS_TYPE_MISMATCH
    4
    successOnly.setSelected(false);
    3
    continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest());
    3
    continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest());
    3
    errorsOnly.setSelected(false);
    Differences
    Expression1Expression2Difference
    !te.getOnErrorStopThread() && !te.getOnErrorStopTest()falseTYPE_COMPATIBLE_REPLACEMENT
    continueBoxerrorsOnlyVARIABLE_NAME_MISMATCH
    javax.swing.JRadioButtonjavax.swing.JCheckBoxSUBCLASS_TYPE_MISMATCH
    3
    errorsOnly.setSelected(false);
    Precondition Violations (2)
    Row Violation
    1Expression stopTestBox.setSelected(te.getOnErrorStopTest()) is a void method call, and thus it cannot be parameterized
    2Expression super.clearGui() is a void method call, and thus it cannot be parameterized