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: 5 | Number of AST nodes: 5 | |||
1 | bits6 = (bits24 & 0x0003F000) >> 12;↵ | 1 | bits6 = (bits24 & 0x00FC0000) >> 18;↵ | |
2 | out[outIndex++] = ALPHABET[bits6];↵ | 2 | out[outIndex++] = ALPHABET[bits6];↵ | |
3 | bits6 = (bits24 & 0x00000FC0) >> 6;↵ | 3 | bits6 = (bits24 & 0x0003F000) >> 12;↵ | |
4 | out[outIndex++] = ALPHABET[bits6];↵ | 4 | out[outIndex++] = ALPHABET[bits6];↵ | |
5 | // padding↵ | 5 | // padding↵ | |
6 | out[outIndex++] = '='; | 6 |
| |
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 | 13 |
Number of mapped statements | 5 |
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23 | bits6 = (bits24 & 0x0003F000) >> 12; |
| 30 | bits6 = (bits24 & 0x00FC0000) >> 18; | |||||||||||||
24 | out[outIndex++] = ALPHABET[bits6]; | 31 | out[outIndex++] = ALPHABET[bits6]; | ||||||||||||||
25 | bits6 = (bits24 & 0x00000FC0) >> 6; |
| 32 | bits6 = (bits24 & 0x0003F000) >> 12; | |||||||||||||
26 | out[outIndex++] = ALPHABET[bits6]; | 33 | out[outIndex++] = ALPHABET[bits6]; | ||||||||||||||
27 | out[outIndex++] = '='; | 34 | out[outIndex++] = '='; |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables , while Clone fragment #2 returns variables outIndex |