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 matchCharacterIterator(Context, Op, int, int, int)
|
Method name: int matchString(Context, Op, int, int, int)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | tok = tok.getCaseInsensitiveToken();↵ | 1 | tok = tok.getCaseInsensitiveToken();↵ | |
2 | if (!tok.match(ch)) {↵ | 2 | if (!tok.match(ch)) {↵ | |
3 | if (ch >= 0x10000) return -1;↵ | 3 | if (ch >= 0x10000) return -1;↵ | |
4 | char uch;↵ | 4 | char uch;↵ | |
5 | if (!tok.match(uch = Character.toUpperCase((char)ch))↵ | 5 | if (!tok.match(uch = Character.toUpperCase((char)ch))↵ | |
6 | && !tok.match(Character.toLowerCase(uch)))↵ | 6 | && !tok.match(Character.toLowerCase(uch)))↵ | |
7 | return -1;↵ | 7 | return -1;↵ | |
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.8 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 20 |
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) | 4.2 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
85 | tok = tok.getCaseInsensitiveToken(); | 85 | tok = tok.getCaseInsensitiveToken(); | |
86 | if (!tok.match(ch)) | 86 | if (!tok.match(ch)) | |
87 | if (ch >= 0x10000) | 87 | if (ch >= 0x10000) | |
88 | return -1; | 88 | return -1; | |
89 | char uch; | 89 | char uch; | |
90 | if (!tok.match(uch = Character.toUpperCase((char)ch)) && !tok.match(Character.toLowerCase(uch))) | 90 | if (!tok.match(uch = Character.toUpperCase((char)ch)) && !tok.match(Character.toLowerCase(uch))) | |
91 | return -1; | 91 | return -1; |
Row | Violation |
---|