t = a; a = b; b = t;
t = b; b = c; c = t;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/installer/CBZip2OutputStream.java File path: /jEdit-4.2/src/installer/CBZip2OutputStream.java
Method name: char med3(char, char, char) Method name: char med3(char, char, char)
Number of AST nodes: 3 Number of AST nodes: 3
1
t = a;
1
t = b;
2
            a = b;
2
            b = c;
3
            b = t;
3
            c = t;
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 the same method
Number of node comparisons9
  1. {Non-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)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    3
    t = a;
    3
    t = a;
    7
    t = b;
    Differences
    Expression1Expression2Difference
    abVARIABLE_NAME_MISMATCH
    7
    t = b;
    4
    a = b;
    4
    a = b;
    8
    b = c;
    Differences
    Expression1Expression2Difference
    abVARIABLE_NAME_MISMATCH
    bcVARIABLE_NAME_MISMATCH
    8
    b = c;
    5
    b = t;
    5
    b = t;
    9
    c = t;
    Differences
    Expression1Expression2Difference
    bcVARIABLE_NAME_MISMATCH
    9
    c = t;
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables b, a , while Clone fragment #2 returns variables b