File path: /apache-ant-1.7.0/src/org/apache/tools/ant/util/Base64Converter.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/util/Base64Converter.java | |||
Method name: String encode(byte[])
|
Method name: String encode(byte[])
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | bits6 = (bits24 & 0x00FC0000) >> 18;↵ | 1 | bits6 = (bits24 & 0x00FC0000) >> 18;↵ | |
2 | out[outIndex++] = ALPHABET[bits6];↵ | 2 | out[outIndex++] = ALPHABET[bits6];↵ | |
3 | bits6 = (bits24 & 0x0003F000) >> 12;↵ | 3 | bits6 = (bits24 & 0x0003F000) >> 12;↵ | |
4 | out[outIndex++] = ALPHABET[bits6]; | 4 |
| |
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 11 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
21 | bits6 = (bits24 & 0x00FC0000) >> 18; | 30 | bits6 = (bits24 & 0x00FC0000) >> 18; | ||||
22 | out[outIndex++] = ALPHABET[bits6]; | 31 | out[outIndex++] = ALPHABET[bits6]; | ||||
23 | bits6 = (bits24 & 0x0003F000) >> 12; | 32 | bits6 = (bits24 & 0x0003F000) >> 12; | ||||
24 | out[outIndex++] = ALPHABET[bits6]; | 31 | out[outIndex++] = ALPHABET[bits6]; | ||||
|
| 33 | out[outIndex++] = ALPHABET[bits6]; |
Row | Violation |
---|---|
1 | Unmatched statement out[outIndex++]=ALPHABET[bits6]; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Clone fragment #1 returns variables outIndex , while Clone fragment #2 returns variables outIndex, bits6 |