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: boolean matches(String, int, int, Match)
|
Method name: boolean matches(CharacterIterator, Match)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (isEOLChar(ch)) {↵ | 1 | if (isEOLChar(ch)) {↵ | |
2 | previousIsEOL = true;↵ | 2 | previousIsEOL = true;↵ | |
3 | } else {↵ | 3 | } else {↵ | |
4 | if (previousIsEOL) {↵ | 4 | if (previousIsEOL) {↵ | |
5 | if (0 <= (matchEnd = this. matchString (con, this.operations,↵ | 5 | if (0 <= (matchEnd = this. matchCharacterIterator (con, this.operations,↵ | |
6 | matchStart, 1, this.options)))↵ | 6 | matchStart, 1, this.options)))↵ | |
7 | break;↵ | 7 | break;↵ | |
8 | }↵ | 8 | }↵ | |
9 | previousIsEOL = false;↵ | 9 | previousIsEOL = false;↵ | |
10 | } | 10 |
| |
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) | 0.5 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 15 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
56 | if (isEOLChar(ch)) | 53 | if (isEOLChar(ch)) | |||||||||||
57 | previousIsEOL = true; | 54 | previousIsEOL = true; | |||||||||||
else | else | |||||||||||||
58 | if (previousIsEOL) | 55 | if (previousIsEOL) | |||||||||||
59 | if (0 <= (matchEnd = this.matchString(con, this.operations, matchStart, 1, this.options))) |
| 56 | if (0 <= (matchEnd = this.matchCharacterIterator(con, this.operations, matchStart, 1, this.options))) | ||||||||||
60 | break; |
| 57 | break; | ||||||||||
61 | previousIsEOL = false; | 58 | previousIsEOL = false; |
Row | Violation |
---|---|
1 | Statement break; without innermost loop |
2 | Statement break; without innermost loop |
3 | Clone fragment #1 returns variables matchEnd, previousIsEOL , while Clone fragment #2 returns variables matchEnd, previousIsEOL |