if ((block[i1 + 2] & 0xff) > (block[i2 + 2] & 0xff)) { continue HAMMER; } else { break HAMMER; }
if ((block[i1 + 2] & 0xff) > (block[i2 + 2] & 0xff)) { continue HAMMER; } else { break HAMMER; }
Clone fragments detected by clone detection tool
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: boolean mainSimpleSort(Data, int, int, int) Method name: boolean mainSimpleSort(Data, int, int, int)
Number of AST nodes: 3 Number of AST nodes: 3
1
if ((block[i1 + 2] & 0xff) > (block[i2 + 2] & 0xff)) {
1
if ((block[i1 + 2] & 0xff)
2
                                
2
                                       > (block[i2 + 2] & 0xff)) {
3
                                continue HAMMER;
3
                                continue HAMMER;
4
                                                            } else {
4
                            
5
                          
5
} else {
6
                                      break HAMMER;
6
                                break HAMMER;
7
                                                            }
7
                            }
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.9
Clones locationClones are in the same method
Number of node comparisons12
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)3.2
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    72
    else if ((block[i1 + 2] & 0xff) > (block[i2 + 2] & 0xff))
    94
    else if ((block[i1 + 2] & 0xff) > (block[i2 + 2] & 0xff))
    73
    continue HAMMER;
    73
    continue HAMMER;
    95
    continue HAMMER;
    Preondition Violations
    Statement continue HAMMER; without innermost loop
    Statement continue HAMMER; without innermost loop
    95
    continue HAMMER;
    else
    else
    74
    break HAMMER;
    74
    break HAMMER;
    96
    break HAMMER;
    Preondition Violations
    Statement break HAMMER; without innermost loop
    Statement break HAMMER; without innermost loop
    96
    break HAMMER;
    Precondition Violations (4)
    Row Violation
    1Statement continue HAMMER; without innermost loop
    2Statement continue HAMMER; without innermost loop
    3Statement break HAMMER; without innermost loop
    4Statement break HAMMER; without innermost loop