while (bsLiveShadow < 1) {
final int thech = inShadow.read();
if (thech >= 0) {
bsBuffShadow = (bsBuffShadow << 8) | thech;
bsLiveShadow += 8;
continue;
} else {
throw new IOException("unexpected end of stream");
while (bsLiveShadow < zn) {
final int thech = inShadow.read();
if (thech >= 0) {
bsBuffShadow = (bsBuffShadow << 8) | thech;
bsLiveShadow += 8;
continue;
} else {
throw new IOException("unexpected end of stream");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/bzip2/CBZip2InputStream.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/bzip2/CBZip2InputStream.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | while (bsLiveShadow < 1) {↵ | | 1 | while (bsLiveShadow < zn) {↵
|
2 | final int thech = inShadow.read();↵ | | 2 | final int thech = inShadow.read();↵
|
3 | if (thech >= 0) {↵ | | 3 | if (thech >= 0) {↵
|
4 | bsBuffShadow = (bsBuffShadow << 8) | thech;↵ | | 4 | bsBuffShadow = (bsBuffShadow << 8) | thech;↵
|
5 | bsLiveShadow += 8;↵ | | 5 | bsLiveShadow += 8;↵
|
6 | continue;↵ | | 6 | continue;↵
|
7 | } else {↵ | | 7 | } else {↵
|
8 | throw new IOException("unexpected end of stream");↵ | | 8 | throw new IOException("unexpected end of stream");↵
|
9 | | | 9 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |