stopTestBox.setSelected(te.getOnErrorStopTest()); stopThrdBox.setSelected(te.getOnErrorStopThread()); continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest());
textMessage.setEnabled(true); messageFile.enableFile(false); randomFile.enableFile(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/jms/control/gui/JMSPublisherGui.java
Method name: void setSampleErrorBoxes(ThreadGroup) Method name: void updateConfig(String)
Number of AST nodes: 3 Number of AST nodes: 3
1
stopTestBox.setSelected(te.getOnErrorStopTest());
1
textMessage.setEnabled(true);
2
		stopThrdBox.setSelected(te.getOnErrorStopThread());
2
			
3
		continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest()
3
messageFile.enableFile(false);
4
);
4
			randomFile.enableFile(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 comparisons9
  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 fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    stopTestBox.setSelected(te.getOnErrorStopTest());
    1
    stopTestBox.setSelected(te.getOnErrorStopTest());
    4
    randomFile.enableFile(false);
    Differences
    Expression1Expression2Difference
    setSelectedenableFileMETHOD_INVOCATION_NAME_MISMATCH
    te.getOnErrorStopTest()falseTYPE_COMPATIBLE_REPLACEMENT
    stopTestBoxrandomFileVARIABLE_NAME_MISMATCH
    javax.swing.JRadioButtonorg.apache.jmeter.gui.util.FilePanelSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression stopTestBox.setSelected(te.getOnErrorStopTest()) is a void method call, and thus it cannot be parameterized
    Expression randomFile.enableFile(false) is a void method call, and thus it cannot be parameterized
    4
    randomFile.enableFile(false);
    2
    stopThrdBox.setSelected(te.getOnErrorStopThread());
    2
    stopThrdBox.setSelected(te.getOnErrorStopThread());
    3
    messageFile.enableFile(false);
    Differences
    Expression1Expression2Difference
    setSelectedenableFileMETHOD_INVOCATION_NAME_MISMATCH
    te.getOnErrorStopThread()falseTYPE_COMPATIBLE_REPLACEMENT
    stopThrdBoxmessageFileVARIABLE_NAME_MISMATCH
    javax.swing.JRadioButtonorg.apache.jmeter.gui.util.FilePanelSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression stopThrdBox.setSelected(te.getOnErrorStopThread()) is a void method call, and thus it cannot be parameterized
    Expression messageFile.enableFile(false) is a void method call, and thus it cannot be parameterized
    3
    messageFile.enableFile(false);
    3
    continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest());
    3
    continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest());
    2
    textMessage.setEnabled(true);
    Differences
    Expression1Expression2Difference
    setSelectedsetEnabledMETHOD_INVOCATION_NAME_MISMATCH
    !te.getOnErrorStopThread() && !te.getOnErrorStopTest()trueTYPE_COMPATIBLE_REPLACEMENT
    continueBoxtextMessageVARIABLE_NAME_MISMATCH
    javax.swing.JRadioButtonorg.apache.jorphan.gui.JLabeledTextAreaSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression continueBox.setSelected(!te.getOnErrorStopThread() && !te.getOnErrorStopTest()) is a void method call, and thus it cannot be parameterized
    Expression textMessage.setEnabled(true) is a void method call, and thus it cannot be parameterized
    2
    textMessage.setEnabled(true);
    Precondition Violations (6)
    Row Violation
    1Expression stopTestBox.setSelected(te.getOnErrorStopTest()) is a void method call, and thus it cannot be parameterized
    2Expression randomFile.enableFile(false) 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 messageFile.enableFile(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 textMessage.setEnabled(true) is a void method call, and thus it cannot be parameterized