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: RangeToken getCaseInsensitiveToken()
|
Method name: RangeToken getCaseInsensitiveToken()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | for (int i = 0; i < uppers.ranges.length; i += 2) {↵ | 1 | for (int i = 0; i < this.ranges.length; i += 2) {↵ | |
2 | for (int ch = uppers.ranges[i]; ch <= uppers.ranges[i+1]; ch ++) {↵ | 2 | for (int ch = this.ranges[i]; ch <= this.ranges[i+1]; ch ++) {↵ | |
3 | if (ch > 0xffff)↵ | 3 | if (ch > 0xffff)↵ | |
4 | lowers.addRange(ch, ch);↵ | 4 | uppers.addRange(ch, ch);↵ | |
5 | else {↵ | 5 | else {↵ | |
6 | char uch = Character.toUpperCase((char)ch);↵ | 6 | char uch = Character.toUpperCase((char)ch);↵ | |
7 | lowers.addRange(uch, uch);↵ | 7 | uppers.addRange(uch, uch);↵ | |
8 | }↵ | 8 | }↵ | |
9 | }↵ | 9 | }↵ | |
10 | } | 10 |
| |
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.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 22 |
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) | 2.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11 | for (int i = 0; i < uppers.ranges.length; i += 2) |
| 4 | for (int i = 0; i < this.ranges.length; i += 2) | |||||||||||||
12 | for (int ch = uppers.ranges[i]; ch <= uppers.ranges[i + 1]; ch++) |
| 5 | for (int ch = this.ranges[i]; ch <= this.ranges[i + 1]; ch++) | |||||||||||||
13 | if (ch > 0xffff) | 6 | if (ch > 0xffff) | ||||||||||||||
14 | lowers.addRange(ch, ch); |
| 7 | uppers.addRange(ch, ch); | |||||||||||||
else | else | ||||||||||||||||
15 | char uch = Character.toUpperCase((char)ch); | 8 | char uch = Character.toUpperCase((char)ch); | ||||||||||||||
16 | lowers.addRange(uch, uch); |
| 9 | uppers.addRange(uch, uch); |
Row | Violation |
---|