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 matchCharArray(Context, Op, int, int, int)
|
Method name: int matchString(Context, Op, int, int, int)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | int ret = this. matchCharArray (con, op.elementAt(i), offset, dx, opts);↵ | 1 | int ret = this. matchString (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 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 18 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 35.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
238 | int ret = this.matchCharArray(con, op.elementAt(i), offset, dx, opts); |
| 238 | int ret = this.matchString(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; |
Row | Violation |
---|