val = validate; tol = tolerate; type = "Val=" + val + " Tol=" + tol;
super(); isDynamic = true; hasFunction = false;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/XPathUtil.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/engine/util/CompoundVariable.java
Method name: void MyErrorHandler(boolean, boolean) Method name: void CompoundVariable()
Number of AST nodes: 3 Number of AST nodes: 3
1
val = validate;
2
			tol = tolerate;
3
			type = "Val=" + val + " Tol=" + tol
1
super();
2
		isDynamic = true;
4
;
3
		hasFunction = 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
Number of node comparisons4
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
                          
    1
    super();
    1
    val = validate;
    1
    val = validate;
    2
    isDynamic = true;
    Differences
    Expression1Expression2Difference
    valisDynamicVARIABLE_NAME_MISMATCH
    validatetrueTYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression val is a field being modified, and thus it cannot be parameterized
    Expression isDynamic is a field being modified, and thus it cannot be parameterized
    2
    isDynamic = true;
    2
    tol = tolerate;
    2
    tol = tolerate;
    3
    hasFunction = false;
    Differences
    Expression1Expression2Difference
    tolhasFunctionVARIABLE_NAME_MISMATCH
    toleratefalseTYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression tol is a field being modified, and thus it cannot be parameterized
    Expression hasFunction is a field being modified, and thus it cannot be parameterized
    3
    hasFunction = false;
    3
    type = "Val=" + val + " Tol=" + tol;
                                                                            
    Precondition Violations (4)
    Row Violation
    1Expression val is a field being modified, and thus it cannot be parameterized
    2Expression isDynamic is a field being modified, and thus it cannot be parameterized
    3Expression tol is a field being modified, and thus it cannot be parameterized
    4Expression hasFunction is a field being modified, and thus it cannot be parameterized