super.configure(el); XPathAssertion assertion = (XPathAssertion) el; xpath.setXPath(assertion.getXPathString()); xpath.setNegated(assertion.isNegated()); xml.configure(assertion);
infinite.setSelected(true); loops.setEnabled(false); loops.setText("");
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/assertions/gui/XPathAssertionGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/LoopControlPanel.java
Method name: void configure(TestElement) Method name: void setState(int)
Number of AST nodes: 5 Number of AST nodes: 3
1
super.configure(el);
2
		XPathAssertion assertion = (XPathAssertion) el;
3
		xpath.setXPath(assertion.getXPathString());
4
		xpath.setNegated(assertion.isNegated());
5
		xml.configure(assertion
1
infinite.setSelected(true);
2
			loops.setEnabled(false);
6
);
3
			loops.setText("");
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 comparisons15
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment2
    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
    super.configure(el);
    1
    super.configure(el);
    2
    infinite.setSelected(true);
    Differences
    Expression1Expression2Difference
    super.configure(el)infinite.setSelected(true)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression super.configure(el) is a void method call, and thus it cannot be parameterized
    Expression infinite.setSelected(true) is a void method call, and thus it cannot be parameterized
    2
    infinite.setSelected(true);
    2
    XPathAssertion assertion = (XPathAssertion)el;
                                                                                                  
    3
    xpath.setXPath(assertion.getXPathString());
    3
    xpath.setXPath(assertion.getXPathString());
    4
    loops.setText("");
    Differences
    Expression1Expression2Difference
    setXPathsetTextMETHOD_INVOCATION_NAME_MISMATCH
    assertion.getXPathString()""TYPE_COMPATIBLE_REPLACEMENT
    xpathloopsVARIABLE_NAME_MISMATCH
    org.apache.jmeter.assertions.gui.XPathPaneljavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression xpath.setXPath(assertion.getXPathString()) is a void method call, and thus it cannot be parameterized
    Expression loops.setText("") is a void method call, and thus it cannot be parameterized
    4
    loops.setText("");
    4
    xpath.setNegated(assertion.isNegated());
    4
    xpath.setNegated(assertion.isNegated());
    3
    loops.setEnabled(false);
    Differences
    Expression1Expression2Difference
    setNegatedsetEnabledMETHOD_INVOCATION_NAME_MISMATCH
    assertion.isNegated()falseTYPE_COMPATIBLE_REPLACEMENT
    xpathloopsVARIABLE_NAME_MISMATCH
    org.apache.jmeter.assertions.gui.XPathPaneljavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression xpath.setNegated(assertion.isNegated()) is a void method call, and thus it cannot be parameterized
    Expression loops.setEnabled(false) is a void method call, and thus it cannot be parameterized
    3
    loops.setEnabled(false);
    5
    xml.configure(assertion);
                                                            
    Precondition Violations (6)
    Row Violation
    1Expression super.configure(el) is a void method call, and thus it cannot be parameterized
    2Expression infinite.setSelected(true) is a void method call, and thus it cannot be parameterized
    3Expression xpath.setXPath(assertion.getXPathString()) is a void method call, and thus it cannot be parameterized
    4Expression loops.setText("") is a void method call, and thus it cannot be parameterized
    5Expression xpath.setNegated(assertion.isNegated()) is a void method call, and thus it cannot be parameterized
    6Expression loops.setEnabled(false) is a void method call, and thus it cannot be parameterized