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 comparisons12
  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 "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;
    1
    val = validate;
    Differences
    Expression1Expression2Difference
    exclfilevalVARIABLE_NAME_MISMATCH
    exfvalidateVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression exclfile 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;
    3
    inclfile = inf;
    3
    inclfile = inf;
    2
    tol = tolerate;
    Differences
    Expression1Expression2Difference
    inclfiletolVARIABLE_NAME_MISMATCH
    inftolerateVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression inclfile 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;
    4
    exclpatt = exp;
    4
    exclpatt = exp;
    Preondition Violations
    Unmatched statement exclpatt=exp; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                    
    5
    inclpatt = inp;
    5
    inclpatt = inp;
    Preondition Violations
    Unmatched statement inclpatt=inp; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                    
    Precondition Violations (7)
    Row Violation
    1Expression "Val=" + val + " Tol="+ tol cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression exclfile is a field being modified, and thus it cannot be parameterized
    3Expression val is a field being modified, and thus it cannot be parameterized
    4Expression inclfile is a field being modified, and thus it cannot be parameterized
    5Expression tol is a field being modified, and thus it cannot be parameterized
    6Unmatched statement exclpatt=exp; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    7Unmatched statement inclpatt=inp; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted