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 matchCharacterIterator(Context, Op, int, int, int)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | int previousOffset = con.offsets[id];↵ | 1 | int previousOffset = con.offsets[id];↵ | |
2 | if (previousOffset < 0 || previousOffset != offset) {↵ | 2 | if (previousOffset < 0 || previousOffset != offset) {↵ | |
3 | con.offsets[id] = offset;↵ | 3 | con.offsets[id] = offset;↵ | |
4 | } else {↵ | 4 | } else {↵ | |
5 | con.offsets[id] = -1;↵ | 5 | con.offsets[id] = -1;↵ | |
6 | op = op.next;↵ | 6 | op = op.next;↵ | |
7 | break;↵ | 7 | break;↵ | |
8 | } | 8 |
| |
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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 28 |
Number of mapped statements | 6 |
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) | 15.8 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
210 | int previousOffset = con.offsets[id]; | 210 | int previousOffset = con.offsets[id]; | |
211 | if (previousOffset < 0 || previousOffset != offset) | 211 | if (previousOffset < 0 || previousOffset != offset) | |
212 | con.offsets[id] = offset; | 212 | con.offsets[id] = offset; | |
else | else | |||
213 | con.offsets[id] = -1; | 213 | con.offsets[id] = -1; | |
214 | op = op.next; | 214 | op = op.next; | |
215 | break; | 215 | break; |
Row | Violation |
---|