this.su_i2++; this.su_count = 0; setupNoRandPartA();
this.su_rNToGo = 0; this.su_rTPos = 0; setupRandPartA();
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: void setupNoRandPartC() Method name: void setupBlock()
Number of AST nodes: 3 Number of AST nodes: 3
1
this.su_i2++;
1
this.su_rNToGo = 0;
2
            this.su_count = 0;
2
            this.su_rTPos = 0;
3
            setupNoRandPartA();
3
            setupRandPartA();
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.0
Clones locationClones are declared in the same class
Number of node comparisons7
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    7
    this.su_i2++;
                                    
                                              
    20
    this.su_rNToGo = 0;
    8
    this.su_count = 0;
    8
    this.su_count = 0;
    21
    this.su_rTPos = 0;
    Differences
    Expression1Expression2Difference
    su_countsu_rTPosVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.su_count is a field being modified, and thus it cannot be parameterized
    Expression this.su_rTPos is a field being modified, and thus it cannot be parameterized
    21
    this.su_rTPos = 0;
    9
    setupNoRandPartA();
    9
    setupNoRandPartA();
    22
    setupRandPartA();
    Differences
    Expression1Expression2Difference
    setupNoRandPartAsetupRandPartAMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression setupNoRandPartA() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method setupNoRandPartA
    Expression setupRandPartA() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method setupRandPartA
    Expression setupNoRandPartA() is a void method call, and thus it cannot be parameterized
    Expression setupRandPartA() is a void method call, and thus it cannot be parameterized
    22
    setupRandPartA();
    Precondition Violations (6)
    Row Violation
    1Expression this.su_count is a field being modified, and thus it cannot be parameterized
    2Expression this.su_rTPos is a field being modified, and thus it cannot be parameterized
    3Expression setupNoRandPartA() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression setupRandPartA() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression setupNoRandPartA() is a void method call, and thus it cannot be parameterized
    6Expression setupRandPartA() is a void method call, and thus it cannot be parameterized