tok.sortRanges(); tok.compactRanges(); //tok.dumpRanges(); /* if (this.isSet(RegularExpression.IGNORE_CASE)) tok = RangeToken.createCaseInsensitiveToken(tok); */ this.setContext(S_NORMAL); this.next(); // Skips ']' return tok;
tok.sortRanges(); tok.compactRanges(); //tok.dumpRanges(); this.setContext(S_NORMAL); this.next(); // Skips ']' return tok;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java
Method name: RangeToken parseCharacterClass(boolean) Method name: RangeToken parseCharacterClass(boolean)
Number of AST nodes: 5 Number of AST nodes: 5
1
tok.sortRanges();
1
tok.sortRanges();
2
          tok.compactRanges();
2
      tok.compactRanges();
3
          //tok.dumpRanges();
3
      //tok.dumpRanges();
4
          /*
5
          if (this.isSet(RegularExpression.IGNORE_CASE))
6
              tok = RangeToken.createCaseInsensitiveToken(tok);
7
          */
8
          this.setContext(S_NORMAL);
4
      this.setContext(S_NORMAL);
9
          this.next();                    // Skips ']'
5
      this.next(); // Skips ']'
10
          return tok;
6
      return tok;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same java file
Number of node comparisons18
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    90
    tok.sortRanges();
    96
    tok.sortRanges();
    91
    tok.compactRanges();
    97
    tok.compactRanges();
    92
    this.setContext(S_NORMAL);
    98
    this.setContext(S_NORMAL);
    93
    this.next();
    99
    this.next();
    94
    return tok;
    100
    return tok;
    Precondition Violations (0)
    Row Violation