if (negated == null) { negated = new JCheckBox(JMeterUtils.getResString("xpath_assertion_negate"), false); //$NON-NLS-1$ } return negated;
if (whitespace == null) { whitespace = new JCheckBox(JMeterUtils.getResString("xml_whitespace_button")); //$NON-NLS-1$ } return whitespace;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/assertions/gui/XPathPanel.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/assertions/gui/XMLConfPanel.java
Method name: JCheckBox getNegatedCheckBox() Method name: JCheckBox getWhitespace()
Number of AST nodes: 3 Number of AST nodes: 3
1
if (negated == null) {
1
if (whitespace == null) {
2
			negated = new JCheckBox(JMeterUtils.getResString("xpath_assertion_negate"), false); //$NON-NLS-1$
2
			whitespace = new JCheckBox(JMeterUtils.getResString("xml_whitespace_button")); //$NON-NLS-1$
3
		}
3
		}
4
		return negated;
4
		return whitespace;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes having the same super class
Number of node comparisons5
  1. {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)18.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (negated == null)
    1
    if (negated == null)
    1
    if (whitespace == null)
    Differences
    Expression1Expression2Difference
    negatedwhitespaceVARIABLE_NAME_MISMATCH
    1
    if (whitespace == null)
    2
    negated = new JCheckBox(JMeterUtils.getResString("xpath_assertion_negate"), false);
    2
    negated = new JCheckBox(JMeterUtils.getResString("xpath_assertion_negate"), false);
    2
    whitespace = new JCheckBox(JMeterUtils.getResString("xml_whitespace_button"));
    Differences
    Expression1Expression2Difference
    negatedwhitespaceVARIABLE_NAME_MISMATCH
    new JCheckBox(JMeterUtils.getResString("xpath_assertion_negate"),false)new JCheckBox(JMeterUtils.getResString("xml_whitespace_button"))ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression new JCheckBox(JMeterUtils.getResString("xpath_assertion_negate"),false) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression new JCheckBox(JMeterUtils.getResString("xml_whitespace_button")) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2
    whitespace = new JCheckBox(JMeterUtils.getResString("xml_whitespace_button"));
    3
    return negated;
    3
    return negated;
    3
    return whitespace;
    Differences
    Expression1Expression2Difference
    negatedwhitespaceVARIABLE_NAME_MISMATCH
    3
    return whitespace;
    Precondition Violations (2)
    Row Violation
    1Expression new JCheckBox(JMeterUtils.getResString("xpath_assertion_negate"),false) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression new JCheckBox(JMeterUtils.getResString("xml_whitespace_button")) cannot be parameterized, because it has dependencies to/from statements that will be extracted