file = f; exclfile = exf; inclfile = inf; exclpatt = exp; inclpatt = inp;
val = validate; tol = tolerate; type = "Val=" + val + " Tol=" + tol;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/util/accesslog/TestLogFilter.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/XPathUtil.java
Method name: void TestData(String, boolean, boolean, boolean, boolean) Method name: void MyErrorHandler(boolean, boolean)
Number of AST nodes: 5 Number of AST nodes: 3
1
file = f;
2
				exclfile = exf;
3
				inclfile = inf;
4
				exclpatt = exp;
5
				inclpatt = inp
1
val = validate;
2
			tol = tolerate;
6
;
3
			type = "Val=" + val + " Tol=" + tol;
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 comparisons6
  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
    file = f;
    1
    file = f;
    3
    type = "Val=" + val + " Tol=" + tol;
    Differences
    Expression1Expression2Difference
    filetypeVARIABLE_NAME_MISMATCH
    f"Val=" + val + " Tol="+ tolTYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression file is a field being modified, and thus it cannot be parameterized
    Expression type is a field being modified, and thus it cannot be parameterized
    Expression "Val=" + val + " Tol="+ tol cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3
    type = "Val=" + val + " Tol=" + tol;
    2
    exclfile = exf;
    2
    exclfile = exf;
    2
    tol = tolerate;
    Differences
    Expression1Expression2Difference
    exclfiletolVARIABLE_NAME_MISMATCH
    exftolerateVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression exclfile is a field being modified, and thus it cannot be parameterized
    Expression tol is a field being modified, and thus it cannot be parameterized
    2
    tol = tolerate;
    3
    inclfile = inf;
    3
    inclfile = inf;
    1
    val = validate;
    Differences
    Expression1Expression2Difference
    inclfilevalVARIABLE_NAME_MISMATCH
    infvalidateVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression inclfile is a field being modified, and thus it cannot be parameterized
    Expression val is a field being modified, and thus it cannot be parameterized
    1
    val = validate;
    4
    exclpatt = exp;
                                    
    5
    inclpatt = inp;
                                    
    Precondition Violations (7)
    Row Violation
    1Expression file is a field being modified, and thus it cannot be parameterized
    2Expression type is a field being modified, and thus it cannot be parameterized
    3Expression "Val=" + val + " Tol="+ tol cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression exclfile is a field being modified, and thus it cannot be parameterized
    5Expression tol is a field being modified, and thus it cannot be parameterized
    6Expression inclfile is a field being modified, and thus it cannot be parameterized
    7Expression val is a field being modified, and thus it cannot be parameterized