j++; tmp2 = tmp; tmp = pos[ j ]; pos[ j ] = tmp2;
j++; tmp2 = tmp; tmp = yy[ j ]; yy[ j ] = tmp2;
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: void sendMTFValues() Method name: void generateMTFValues()
Number of AST nodes: 4 Number of AST nodes: 4
1
j++;
1
j++;
2
                    tmp2 = tmp;
2
                tmp2 = tmp;
3
                    tmp = pos[ j ];
3
                tmp = yy[ j ];
4
                    pos[ j ] = tmp2;
4
                yy[ j ] = tmp2;
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 declared in the same class
Number of node comparisons25
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    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
    133
    j++;
    23
    j++;
    134
    tmp2 = tmp;
    24
    tmp2 = tmp;
    135
    tmp = pos[j];
    135
    tmp = pos[j];
    25
    tmp = yy[j];
    Differences
    Expression1Expression2Difference
    posyyVARIABLE_NAME_MISMATCH
    25
    tmp = yy[j];
    136
    pos[j] = tmp2;
    136
    pos[j] = tmp2;
    26
    yy[j] = tmp2;
    Differences
    Expression1Expression2Difference
    posyyVARIABLE_NAME_MISMATCH
    26
    yy[j] = tmp2;
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables tmp, j, pos , while Clone fragment #2 returns variables tmp, j, yy