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;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 25 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
133 | j++; | | 23 | j++; |
134 | tmp2 = tmp; | | 24 | tmp2 = tmp; |
135 | tmp = pos[j]; | | 25 | tmp = yy[j]; |
136 | pos[j] = tmp2; | | 26 | yy[j] = tmp2; |
Precondition Violations (1)
Row |
Violation |
1 | Clone fragment #1 returns variables tmp, j , while Clone fragment #2 returns variables tmp, j |