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 | if (!tok.match(ch)) {↵ | 1 | if (!tok.match(ch)) {↵ | |
2 | if (ch >= 0x10000) return -1;↵ | 2 | if (ch >= 0x10000) return -1;↵ | |
3 | char uch;↵ | 3 | char uch;↵ | |
4 | if (!tok.match(uch = Character.toUpperCase((char)ch))↵ | 4 | if (!tok.match(uch = Character.toUpperCase((char)ch))↵ | |
5 | && !tok.match(Character.toLowerCase(uch)))↵ | 5 | && !tok.match(Character.toLowerCase(uch)))↵ | |
6 | return -1;↵ | 6 | return -1;↵ | |
7 | } | 7 |
| |
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.8 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 19 |
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) | 4.9 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
68 | if (!tok.match(ch)) | 68 | if (!tok.match(ch)) | |
69 | if (ch >= 0x10000) | 69 | if (ch >= 0x10000) | |
70 | return -1; | 70 | return -1; | |
71 | char uch; | 71 | char uch; | |
72 | if (!tok.match(uch = Character.toUpperCase((char)ch)) && !tok.match(Character.toLowerCase(uch))) | 72 | if (!tok.match(uch = Character.toUpperCase((char)ch)) && !tok.match(Character.toLowerCase(uch))) | |
73 | return -1; | 73 | return -1; |
Row | Violation |
---|