File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/BUnzip2.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Tar.java | |||
Method name: void extract()
|
Method name: void tarResource(Resource, TarOutputStream, String, TarFileSet)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | byte[] buffer = new byte[8 * 1024];↵ | 1 | byte[] buffer = new byte[8 * 1024];↵ | |
2 | int count = 0;↵ | 2 | int count = 0;↵ | |
3 | do {↵ | 3 | do {↵ | |
4 | out.write(buffer, 0, count);↵ | 4 | tOut.write(buffer, 0, count);↵ | |
5 | count = zIn.read(buffer, 0, buffer.length);↵ | 5 | count = in.read(buffer, 0, buffer.length);↵ | |
6 | } while (count != -1); | 6 |
| |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 14 |
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) | 13.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18 | byte[] buffer = new byte[8 * 1024]; | 64 | byte[] buffer = new byte[8 * 1024]; | ||||||||||||||
19 | int count = 0; | 65 | int count = 0; | ||||||||||||||
22 | do while(count != -1) | 68 | do while(count != -1) | ||||||||||||||
20 | out.write(buffer, 0, count); |
| 66 | tOut.write(buffer, 0, count); | |||||||||||||
21 | count = zIn.read(buffer, 0, buffer.length); |
| 67 | count = in.read(buffer, 0, buffer.length); |
Row | Violation |
---|