if (syntax.get(RESyntax.RE_LOOKAHEAD)) { pure = true; negativelh = true; lookAhead = true; index += 2; }
if (syntax.get(RESyntax.RE_LOOKAHEAD)) { pure = true; lookAhead = true; index += 2; }
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/gnu/regexp/RE.java File path: /jEdit-4.2/src/gnu/regexp/RE.java
Method name: void initialize(Object, int, RESyntax, int, int) Method name: void initialize(Object, int, RESyntax, int, int)
Number of AST nodes: 5 Number of AST nodes: 4
1
if (syntax.get(RESyntax.RE_LOOKAHEAD)) {
1
if (syntax.get(RESyntax.RE_LOOKAHEAD)) {
2
              pure = true;
2
              pure = true;
3
              negativelh = true;
4
              lookAhead = true;
3
              lookAhead = true;
5
              index += 2;
4
              index += 2;
6
            }
5
            }
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.3
Clones locationClones are in the same method
Number of node comparisons22
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)2.5
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    138
    if (syntax.get(RESyntax.RE_LOOKAHEAD))
    145
    if (syntax.get(RESyntax.RE_LOOKAHEAD))
    139
    pure = true;
    146
    pure = true;
    140
    negativelh = true;
                                              
    141
    lookAhead = true;
    147
    lookAhead = true;
    142
    index += 2;
    148
    index += 2;
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables index, pure, lookAhead , while Clone fragment #2 returns variables index, pure, lookAhead