int ret = this. matchString (con, op.elementAt(i), offset, dx, opts); if (DEBUG) { System.err.println("UNION: "+i+", ret="+ret); } if (ret >= 0) return ret;
int ret = this. matchCharacterIterator (con, op.elementAt(i), offset, dx, opts); if (DEBUG) { System.err.println("UNION: "+i+", ret="+ret); } if (ret >= 0) return ret;
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: int matchString(Context, Op, int, int, int) Method name: int matchCharacterIterator(Context, Op, int, int, int)
Number of AST nodes: 5 Number of AST nodes: 5
1
int ret = this. matchString (con, op.elementAt(i), offset, dx, opts);
1
int ret = this. matchCharacterIterator (con, op.elementAt(i), offset, dx, opts);
2
                      if (DEBUG) {
2
                      if (DEBUG) {
3
                          System.err.println("UNION: "+i+", ret="+ret);
3
                          System.err.println("UNION: "+i+", ret="+ret);
4
                      }
4
                      }
5
                      if (ret >= 0)  return ret;
5
                      if (ret >= 0)  return ret;
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.3
Clones locationClones are declared in the same class
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)37.2
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    238
    int ret = this.matchString(con, op.elementAt(i), offset, dx, opts);
    238
    int ret = this.matchString(con, op.elementAt(i), offset, dx, opts);
    238
    int ret = this.matchCharacterIterator(con, op.elementAt(i), offset, dx, opts);
    Differences
    Expression1Expression2Difference
    matchStringmatchCharacterIteratorMETHOD_INVOCATION_NAME_MISMATCH
    238
    int ret = this.matchCharacterIterator(con, op.elementAt(i), offset, dx, opts);
    239
    if (DEBUG)
    239
    if (DEBUG)
    240
    System.err.println("UNION: " + i + ", ret=" + ret);
    240
    System.err.println("UNION: " + i + ", ret=" + ret);
    241
    if (ret >= 0)
    241
    if (ret >= 0)
    242
    return ret;
    242
    return ret;
    Precondition Violations (0)
    Row Violation