super.configure(el); XPathAssertion assertion = (XPathAssertion) el; xpath.setXPath(assertion.getXPathString()); xpath.setNegated(assertion.isNegated()); xml.configure(assertion);
super.clearGui(); inputVal.setText(""); // $NON-NLS-1$ returnVal.setText(""); // $NON-NLS-1$ useSeparator.setSelected(true);
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/ForeachControlPanel.java
Method name: void configure(TestElement) Method name: void clearGui()
Number of AST nodes: 5 Number of AST nodes: 4
1
super.configure(el);
1
super.c
2
		XPathAssertion assertion = (XPathAssertion) el;
3
		xpath.setXPath(assertion.getXPathString());
4
		xpath.setNegated(assertion.isNegated());
5
		xml.configure(assertion
2
learGui();
3
        
4
        inputVal.setText(""); // $NON-NLS-1$
5
        returnVal.setText(""); // $NON-NLS-1$
6
);
6
        useSeparator.setSelected(true);
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 comparisons20
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    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
    super.configure(el);
    1
    super.configure(el);
    2
    inputVal.setText("");
    Differences
    Expression1Expression2Difference
    super.configure(el)inputVal.setText("")TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression super.configure(el) is a void method call, and thus it cannot be parameterized
    Expression inputVal.setText("") is a void method call, and thus it cannot be parameterized
    2
    inputVal.setText("");
    2
    XPathAssertion assertion = (XPathAssertion)el;
                                                                                                  
    3
    xpath.setXPath(assertion.getXPathString());
    3
    xpath.setXPath(assertion.getXPathString());
    3
    returnVal.setText("");
    Differences
    Expression1Expression2Difference
    setXPathsetTextMETHOD_INVOCATION_NAME_MISMATCH
    assertion.getXPathString()""TYPE_COMPATIBLE_REPLACEMENT
    xpathreturnValVARIABLE_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 returnVal.setText("") is a void method call, and thus it cannot be parameterized
    3
    returnVal.setText("");
    4
    xpath.setNegated(assertion.isNegated());
    4
    xpath.setNegated(assertion.isNegated());
    4
    useSeparator.setSelected(true);
    Differences
    Expression1Expression2Difference
    setNegatedsetSelectedMETHOD_INVOCATION_NAME_MISMATCH
    assertion.isNegated()trueTYPE_COMPATIBLE_REPLACEMENT
    xpathuseSeparatorVARIABLE_NAME_MISMATCH
    org.apache.jmeter.assertions.gui.XPathPaneljavax.swing.JCheckBoxSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression xpath.setNegated(assertion.isNegated()) is a void method call, and thus it cannot be parameterized
    Expression useSeparator.setSelected(true) is a void method call, and thus it cannot be parameterized
    4
    useSeparator.setSelected(true);
    5
    xml.configure(assertion);
    5
    xml.configure(assertion);
    1
    super.clearGui();
    Differences
    Expression1Expression2Difference
    xml.configure(assertion)super.clearGui()TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression xml.configure(assertion) 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();
    Precondition Violations (8)
    Row Violation
    1Expression super.configure(el) is a void method call, and thus it cannot be parameterized
    2Expression inputVal.setText("") 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 returnVal.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 useSeparator.setSelected(true) is a void method call, and thus it cannot be parameterized
    7Expression xml.configure(assertion) is a void method call, and thus it cannot be parameterized
    8Expression super.clearGui() is a void method call, and thus it cannot be parameterized