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: void hbMakeCodeLengths(char[], int[], int, int)
|
Method name: void hbMakeCodeLengths(byte[], int[], Data, int, int)
|
|||
Number of AST nodes: 1 | Number of AST nodes: 1 | |||
1 | weight[nNodes] = (((weight_n1 & 0xffffff00)↵ | 1 | weight[nNodes] = ((weight_n1 & 0xffffff00)↵ | |
2 | + (weight_n2 & 0xffffff00))↵ | 2 | + (weight_n2 & 0xffffff00))↵ | |
3 | | (1 + (((weight_n1 & 0x000000ff)↵ | 3 | | (1 + (((weight_n1 & 0x000000ff)↵ | |
4 | > (weight_n2 & 0x000000ff))↵ | 4 | > (weight_n2 & 0x000000ff))↵ | |
5 | ? (weight_n1 & 0x000000ff)↵ | 5 | ? (weight_n1 & 0x000000ff)↵ | |
6 | : (weight_n2 & 0x000000ff)))); | 6 | : (weight_n2 & 0x000000ff))); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
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 | 23 |
Number of mapped statements | 1 |
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 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62 | weight[nNodes] = (((weight_n1 & 0xffffff00) + (weight_n2 & 0xffffff00)) | (1 + (((weight_n1 & 0x000000ff) > (weight_n2 & 0x000000ff)) ? (weight_n1 & 0x000000ff) : (weight_n2 & 0x000000ff)))); |
| 62 | weight[nNodes] = ((weight_n1 & 0xffffff00) + (weight_n2 & 0xffffff00)) | (1 + (((weight_n1 & 0x000000ff) > (weight_n2 & 0x000000ff)) ? (weight_n1 & 0x000000ff) : (weight_n2 & 0x000000ff))); |
Row | Violation |
---|