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 matchCharArray(Context, Op, int, int, int)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (con.length == 0 || offset == con.limit) return -1;↵ | 1 | if (con.length == 0 || offset == con.start) return -1;↵ | |
2 | if (getWordType(target, con.start, con.limit, offset, opts) != WT_LETTER↵ | 2 | if (getWordType(target, con.start, con.limit, offset, opts) != WT_OTHER↵ | |
3 | || getPreviousWordType(target, con.start, con.limit, offset, opts) != WT_OTHER)↵ | 3 | || getPreviousWordType(target, con.start, con.limit, offset, opts) != WT_LETTER)↵ | |
4 | return -1;↵ | 4 | return -1;↵ | |
5 | break; | 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) | 2.3 |
Clones location | Clones are in the same method |
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) | 4.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
149 | if (con.length == 0 || offset == con.limit) |
| 155 | if (con.length == 0 || offset == con.start) | |||||||||||||
150 | return -1; | 156 | return -1; | ||||||||||||||
151 | if (getWordType(target, con.start, con.limit, offset, opts) != WT_LETTER || getPreviousWordType(target, con.start, con.limit, offset, opts) != WT_OTHER) |
| 157 | if (getWordType(target, con.start, con.limit, offset, opts) != WT_OTHER || getPreviousWordType(target, con.start, con.limit, offset, opts) != WT_LETTER) | |||||||||||||
152 | return -1; | 158 | return -1; | ||||||||||||||
153 | break; | 159 | break; |
Row | Violation |
---|