File path: /apache-ant-1.7.0/src/org/apache/tools/bzip2/CBZip2OutputStream.java | File path: /apache-ant-1.7.0/src/org/apache/tools/bzip2/CBZip2OutputStream.java | |||
Method name: boolean mainSimpleSort(Data, int, int, int)
|
Method name: boolean mainSimpleSort(Data, int, int, int)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if ((block[i1 + 3] & 0xff) > (block[i2 + 3] & 0xff)) {↵ | 1 | if ((block[i1 + 3] & 0xff)↵ | |
2 | ↵ | 2 | > (block[i2 + 3] & 0xff)) {↵ | |
3 | continue HAMMER;↵ | 3 | continue HAMMER;↵ | |
4 | } else {↵ | 4 | ↵ | |
5 | ↵ | 5 | } else {↵ | |
6 | break HAMMER;↵ | 6 | break HAMMER;↵ | |
7 | } | 7 |
| |
See real code fragment | See real code fragment |
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.8 |
Clones location | Clones are in the same method |
Number of node comparisons | 12 |
Number of mapped statements | 3 |
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.6 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |||||||
---|---|---|---|---|---|---|---|---|---|---|
66 | else if ((block[i1 + 3] & 0xff) > (block[i2 + 3] & 0xff)) | 91 | else if ((block[i1 + 3] & 0xff) > (block[i2 + 3] & 0xff)) | |||||||
67 | continue HAMMER; |
| 92 | continue HAMMER; | ||||||
else | else | |||||||||
68 | break HAMMER; |
| 93 | break HAMMER; |
Row | Violation |
---|---|
1 | Statement continue HAMMER; without innermost loop |
2 | Statement continue HAMMER; without innermost loop |
3 | Statement break HAMMER; without innermost loop |
4 | Statement break HAMMER; without innermost loop |