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: 7 | Number of AST nodes: 7 | |||
1 | int index = -refno;↵ | 1 | int index = -refno;↵ | |
2 | int save = con.match.getEnd(index);↵ | 2 | int save = con.match.getEnd(index);↵ | |
3 | con.match.setEnd(index, offset);↵ | 3 | con.match.setEnd(index, offset);↵ | |
4 | int ret = this. matchString (con, op.next, offset, dx, opts);↵ | 4 | int ret = this. matchCharacterIterator (con, op.next, offset, dx, opts);↵ | |
5 | if (ret < 0) con.match.setEnd(index, save);↵ | 5 | if (ret < 0) con.match.setEnd(index, save);↵ | |
6 | return ret; | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
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 | 31 |
Number of mapped statements | 7 |
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) | 31.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
254 | int index = -refno; | 254 | int index = -refno; | |||||||||||||
255 | int save = con.match.getEnd(index); | 255 | int save = con.match.getEnd(index); | |||||||||||||
256 | con.match.setEnd(index, offset); | 256 | con.match.setEnd(index, offset); | |||||||||||||
257 | int ret = this.matchString(con, op.next, offset, dx, opts); |
| 257 | int ret = this.matchCharacterIterator(con, op.next, offset, dx, opts); | ||||||||||||
258 | if (ret < 0) | 258 | if (ret < 0) | |||||||||||||
259 | con.match.setEnd(index, save); | 259 | con.match.setEnd(index, save); | |||||||||||||
260 | return ret; | 260 | return ret; |
Row | Violation |
---|---|
1 | Expression this.matchString(con,op.next,offset,dx,opts) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression this.matchCharacterIterator(con,op.next,offset,dx,opts) cannot be parameterized, because it has dependencies to/from statements that will be extracted |