stopTestBox.setSelected(te.getOnErrorStopTest()); stopThrdBox.setSelected(te.getOnErrorStopThread()); continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest());
super.clearGui(); tableModel.clearData(); deleteButton.setEnabled(false); saveButton.setEnabled(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/protocol/http/gui/AuthPanel.java
Method name: void setSampleErrorBoxes(ThreadGroup) Method name: void clearGui()
Number of AST nodes: 3 Number of AST nodes: 4
1
stopTestBox.setSelected(te.getOnErrorStopTest());
1
super.clearGui();
2
		stopThrdBox.setSelected(te.getOnErrorStopThread
3
());
2
        tableModel.clearData();
4
		continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest()
3
        deleteButton.setEnabled(false);
5
);
4
        saveButton.setEnabled(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
    tableModel.clearData();
    2
    stopThrdBox.setSelected(te.getOnErrorStopThread());
    2
    stopThrdBox.setSelected(te.getOnErrorStopThread());
    4
    saveButton.setEnabled(false);
    Differences
    Expression1Expression2Difference
    setSelectedsetEnabledMETHOD_INVOCATION_NAME_MISMATCH
    te.getOnErrorStopThread()falseTYPE_COMPATIBLE_REPLACEMENT
    stopThrdBoxsaveButtonVARIABLE_NAME_MISMATCH
    javax.swing.JRadioButtonjavax.swing.JButtonSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression stopThrdBox.setSelected(te.getOnErrorStopThread()) is a void method call, and thus it cannot be parameterized
    Expression saveButton.setEnabled(false) is a void method call, and thus it cannot be parameterized
    4
    saveButton.setEnabled(false);
    3
    continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest());
    3
    continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest());
    3
    deleteButton.setEnabled(false);
    Differences
    Expression1Expression2Difference
    setSelectedsetEnabledMETHOD_INVOCATION_NAME_MISMATCH
    !te.getOnErrorStopThread() && !te.getOnErrorStopTest()falseTYPE_COMPATIBLE_REPLACEMENT
    continueBoxdeleteButtonVARIABLE_NAME_MISMATCH
    javax.swing.JRadioButtonjavax.swing.JButtonSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest()) is a void method call, and thus it cannot be parameterized
    Expression deleteButton.setEnabled(false) is a void method call, and thus it cannot be parameterized
    3
    deleteButton.setEnabled(false);
    Precondition Violations (6)
    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
    3Expression stopThrdBox.setSelected(te.getOnErrorStopThread()) is a void method call, and thus it cannot be parameterized
    4Expression saveButton.setEnabled(false) is a void method call, and thus it cannot be parameterized
    5Expression continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest()) is a void method call, and thus it cannot be parameterized
    6Expression deleteButton.setEnabled(false) is a void method call, and thus it cannot be parameterized