quiet.setEnabled(tidySelected); reportErrors.setEnabled(tidySelected); showWarnings.setEnabled(tidySelected); nameSpace.setEnabled(!tidySelected);
stopTestBox.setSelected(te.getOnErrorStopTest()); stopThrdBox.setSelected(te.getOnErrorStopThread()); continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest());
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/jmeter/threads/gui/ThreadGroupGui.java
Method name: void setTidyOptions(boolean) Method name: void setSampleErrorBoxes(ThreadGroup)
Number of AST nodes: 4 Number of AST nodes: 3
1
quiet.setEnabled(tidySelected);
2
		reportErrors.setEnabled(tidySelected);
3
		showWarnings.setEnabled(tidySelected);
4
		nameSpac
1
stopTestBox.setSelected(te.getOnErrorStopTest());
2
		stopThrdBox.setSelected(te.getOnErrorStopThread());
5
e.setEnabled(!tidySelected);
3
		continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest());
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 fragment1
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    quiet.setEnabled(tidySelected);
    1
    quiet.setEnabled(tidySelected);
    1
    stopTestBox.setSelected(te.getOnErrorStopTest());
    Differences
    Expression1Expression2Difference
    setEnabledsetSelectedMETHOD_INVOCATION_NAME_MISMATCH
    tidySelectedte.getOnErrorStopTest()TYPE_COMPATIBLE_REPLACEMENT
    quietstopTestBoxVARIABLE_NAME_MISMATCH
    javax.swing.JCheckBoxjavax.swing.JRadioButtonSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression quiet.setEnabled(tidySelected) is a void method call, and thus it cannot be parameterized
    Expression stopTestBox.setSelected(te.getOnErrorStopTest()) is a void method call, and thus it cannot be parameterized
    1
    stopTestBox.setSelected(te.getOnErrorStopTest());
    2
    reportErrors.setEnabled(tidySelected);
    2
    reportErrors.setEnabled(tidySelected);
    2
    stopThrdBox.setSelected(te.getOnErrorStopThread());
    Differences
    Expression1Expression2Difference
    setEnabledsetSelectedMETHOD_INVOCATION_NAME_MISMATCH
    tidySelectedte.getOnErrorStopThread()TYPE_COMPATIBLE_REPLACEMENT
    reportErrorsstopThrdBoxVARIABLE_NAME_MISMATCH
    javax.swing.JCheckBoxjavax.swing.JRadioButtonSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression reportErrors.setEnabled(tidySelected) is a void method call, and thus it cannot be parameterized
    Expression stopThrdBox.setSelected(te.getOnErrorStopThread()) is a void method call, and thus it cannot be parameterized
    2
    stopThrdBox.setSelected(te.getOnErrorStopThread());
    3
    showWarnings.setEnabled(tidySelected);
    3
    showWarnings.setEnabled(tidySelected);
    3
    continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest());
    Differences
    Expression1Expression2Difference
    setEnabledsetSelectedMETHOD_INVOCATION_NAME_MISMATCH
    tidySelected!te.getOnErrorStopThread() && !te.getOnErrorStopTest()TYPE_COMPATIBLE_REPLACEMENT
    showWarningscontinueBoxVARIABLE_NAME_MISMATCH
    javax.swing.JCheckBoxjavax.swing.JRadioButtonSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression showWarnings.setEnabled(tidySelected) is a void method call, and thus it cannot be parameterized
    Expression continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest()) is a void method call, and thus it cannot be parameterized
    3
    continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest());
    4
    nameSpace.setEnabled(!tidySelected);
                                                                                  
    Precondition Violations (6)
    Row Violation
    1Expression quiet.setEnabled(tidySelected) is a void method call, and thus it cannot be parameterized
    2Expression stopTestBox.setSelected(te.getOnErrorStopTest()) is a void method call, and thus it cannot be parameterized
    3Expression reportErrors.setEnabled(tidySelected) is a void method call, and thus it cannot be parameterized
    4Expression stopThrdBox.setSelected(te.getOnErrorStopThread()) is a void method call, and thus it cannot be parameterized
    5Expression showWarnings.setEnabled(tidySelected) is a void method call, and thus it cannot be parameterized
    6Expression continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest()) is a void method call, and thus it cannot be parameterized