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 matchString(Context, Op, int, int, int)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (ch >= 0x10000) return -1;↵ | 1 | if (ch >= 0x10000) return -1;↵ | |
2 | char uch;↵ | 2 | char uch;↵ | |
3 | if (!tok.match(uch = Character.toUpperCase((char)ch))↵ | 3 | if (!tok.match(uch = Character.toUpperCase((char)ch))↵ | |
4 | && !tok.match(Character.toLowerCase(uch)))↵ | 4 | && !tok.match(Character.toLowerCase(uch)))↵ | |
5 | return -1; | 5 |
| |
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.7 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 16 |
Number of mapped statements | 5 |
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) | 3.0 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
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 |
---|