curInterval = new int[2]; curInterval[0] = i; curInterval[1] = docLen; inSinglLineComment = true; ++i; continue;
curInterval = new int[2]; curInterval[0] = i; curInterval[1] = docLen; inLiteral = true; continue;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/oster/OsterTextControl.java File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/oster/OsterTextControl.java
Method name: void reinitLiteralAndCommentIntervals() Method name: void reinitLiteralAndCommentIntervals()
Number of AST nodes: 6 Number of AST nodes: 5
1
curInterval = new int[2];
1
curInterval = new int[2];
2
                  curInterval[0] = i;
2
                  curInterval[0] = i;
3
                  curInterval[1] = docLen;
3
                  curInterval[1] = docLen;
4
                  inSinglLineComment = true;
4
                  in
5
                  ++i;
5
Literal = true;
6
                  continue;
6
                  continue;
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 in the same method
Number of node comparisons31
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    18
    curInterval = new int[2];
    25
    curInterval = new int[2];
    19
    curInterval[0] = i;
    26
    curInterval[0] = i;
    20
    curInterval[1] = docLen;
    27
    curInterval[1] = docLen;
    21
    inSinglLineComment = true;
    21
    inSinglLineComment = true;
    28
    inLiteral = true;
    Differences
    Expression1Expression2Difference
    inSinglLineCommentinLiteralVARIABLE_NAME_MISMATCH
    28
    inLiteral = true;
    22
    ++i;
    22
    ++i;
    Preondition Violations
    Unmatched statement ++i; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                    
    23
    continue;
    23
    continue;
    29
    continue;
    Preondition Violations
    Statement continue; without innermost loop
    Statement continue; without innermost loop
    29
    continue;
    Precondition Violations (3)
    Row Violation
    1Unmatched statement ++i; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2Statement continue; without innermost loop
    3Statement continue; without innermost loop