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: 15 | Number of AST nodes: 15 | |||
1 | if (!isSet(opts, IGNORE_CASE)) {↵ | 1 | if (!isSet(opts, IGNORE_CASE)) {↵ | |
2 | if (dx > 0) {↵ | 2 | if (dx > 0) {↵ | |
3 | if (!regionMatches(target, offset, con.limit, o2, literallen))↵ | 3 | if (!regionMatches(target, offset, con.limit, o2, literallen))↵ | |
4 | return -1;↵ | 4 | return -1;↵ | |
5 | offset += literallen;↵ | 5 | offset += literallen;↵ | |
6 | } else {↵ | 6 | } else {↵ | |
7 | if (!regionMatches(target, offset-literallen, con.limit, o2, literallen))↵ | 7 | if (!regionMatches(target, offset-literallen, con.limit, o2, literallen))↵ | |
8 | return -1;↵ | 8 | return -1;↵ | |
9 | offset -= literallen;↵ | 9 | offset -= literallen;↵ | |
10 | }↵ | 10 | }↵ | |
11 | } else {↵ | 11 | } else {↵ | |
12 | if (dx > 0) {↵ | 12 | if (dx > 0) {↵ | |
13 | if (!regionMatchesIgnoreCase(target, offset, con.limit, o2, literallen))↵ | 13 | if (!regionMatchesIgnoreCase(target, offset, con.limit, o2, literallen))↵ | |
14 | return -1;↵ | 14 | return -1;↵ | |
15 | offset += literallen;↵ | 15 | offset += literallen;↵ | |
16 | } else {↵ | 16 | } else {↵ | |
17 | if (!regionMatchesIgnoreCase(target, offset-literallen, con.limit,↵ | 17 | if (!regionMatchesIgnoreCase(target, offset-literallen, con.limit,↵ | |
18 | o2, literallen))↵ | 18 | o2, literallen))↵ | |
19 | return -1;↵ | 19 | return -1;↵ | |
20 | offset -= literallen;↵ | 20 | offset -= literallen;↵ | |
21 | }↵ | 21 | }↵ | |
22 | } | 22 |
| |
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) | 4.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 64 |
Number of mapped statements | 15 |
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) | 167.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
170 | if (!isSet(opts, IGNORE_CASE)) | 170 | if (!isSet(opts, IGNORE_CASE)) | ||||||||||||
171 | if (dx > 0) | 171 | if (dx > 0) | ||||||||||||
172 | if (!regionMatches(target, offset, con.limit, o2, literallen)) |
| 172 | if (!regionMatches(target, offset, con.limit, o2, literallen)) | |||||||||||
173 | return -1; | 173 | return -1; | ||||||||||||
174 | offset += literallen; | 174 | offset += literallen; | ||||||||||||
else | else | ||||||||||||||
175 | if (!regionMatches(target, offset - literallen, con.limit, o2, literallen)) |
| 175 | if (!regionMatches(target, offset - literallen, con.limit, o2, literallen)) | |||||||||||
176 | return -1; | 176 | return -1; | ||||||||||||
177 | offset -= literallen; | 177 | offset -= literallen; | ||||||||||||
else | else | ||||||||||||||
178 | if (dx > 0) | 178 | if (dx > 0) | ||||||||||||
179 | if (!regionMatchesIgnoreCase(target, offset, con.limit, o2, literallen)) |
| 179 | if (!regionMatchesIgnoreCase(target, offset, con.limit, o2, literallen)) | |||||||||||
180 | return -1; | 180 | return -1; | ||||||||||||
181 | offset += literallen; | 181 | offset += literallen; | ||||||||||||
else | else | ||||||||||||||
182 | if (!regionMatchesIgnoreCase(target, offset - literallen, con.limit, o2, literallen)) |
| 182 | if (!regionMatchesIgnoreCase(target, offset - literallen, con.limit, o2, literallen)) | |||||||||||
183 | return -1; | 183 | return -1; | ||||||||||||
184 | offset -= literallen; | 184 | offset -= literallen; |
Row | Violation |
---|---|
1 | Type char[] of variable target does not match with type java.text.CharacterIterator of variable target |
2 | Type char[] of variable target does not match with type java.text.CharacterIterator of variable target |
3 | Type char[] of variable target does not match with type java.text.CharacterIterator of variable target |
4 | Type char[] of variable target does not match with type java.text.CharacterIterator of variable target |