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: 8 | Number of AST nodes: 8 | |||
1 | int localopts = opts;↵ | 1 | int localopts = opts;↵ | |
2 | localopts |= op.getData();↵ | 2 | localopts |= op.getData();↵ | |
3 | localopts &= ~op.getData2();↵ | 3 | localopts &= ~op.getData2();↵ | |
4 | //System.err.println("MODIFIER: "+Integer.toString(opts, 16)+" -> "+Integer.toString(localopts, 16));↵ | 4 | //System.err.println("MODIFIER: "+Integer.toString(opts, 16)+" -> "+Integer.toString(localopts, 16));↵ | |
5 | int ret = this. matchCharArray (con, op.getChild(), offset, dx, localopts);↵ | 5 | int ret = this. matchCharacterIterator (con, op.getChild(), offset, dx, localopts);↵ | |
6 | if (ret < 0) return ret;↵ | 6 | if (ret < 0) return ret;↵ | |
7 | offset = ret;↵ | 7 | offset = ret;↵ | |
8 | op = op.next; | 8 |
| |
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 | 44 |
Number of mapped statements | 8 |
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) | 59.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
291 | int localopts = opts; | 291 | int localopts = opts; | |||||||||||||
292 | localopts |= op.getData(); | 292 | localopts |= op.getData(); | |||||||||||||
293 | localopts &= ~op.getData2(); | 293 | localopts &= ~op.getData2(); | |||||||||||||
294 | int ret = this.matchCharArray(con, op.getChild(), offset, dx, localopts); |
| 294 | int ret = this.matchCharacterIterator(con, op.getChild(), offset, dx, localopts); | ||||||||||||
295 | if (ret < 0) | 295 | if (ret < 0) | |||||||||||||
296 | return ret; | 296 | return ret; | |||||||||||||
297 | offset = ret; | 297 | offset = ret; | |||||||||||||
298 | op = op.next; | 298 | op = op.next; |
Row | Violation |
---|---|
1 | Expression this.matchCharArray(con,op.getChild(),offset,dx,localopts) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression this.matchCharacterIterator(con,op.getChild(),offset,dx,localopts) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Clone fragment #1 returns variables op, offset , while Clone fragment #2 returns variables op, offset |