case '\\':
ret = T_BACKSOLIDUS;
if (this.offset >= this.regexlen)
throw ex("parser.next.1", this.offset-1);
this.chardata = this.regex.charAt(this.offset++);
break;
case '\\':
ret = T_BACKSOLIDUS;
if (this.offset >= this.regexlen)
throw ex("parser.next.1", this.offset-1);
this.chardata = this.regex.charAt(this.offset++);
break;
Clone fragments detected by clone detection tool
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: void next()
|
|
Method name: void next()
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | case '\\':↵ | | 1 | case '\\':↵
|
2 | ret = T_BACKSOLIDUS;↵ | | 2 | ret = T_BACKSOLIDUS;↵
|
3 | if (this.offset >= this.regexlen)↵ | | 3 | if (this.offset >= this.regexlen)↵
|
4 | throw ex("parser.next.1", this.offset-1);↵ | | 4 | throw ex("parser.next.1", this.offset-1);↵
|
5 | this.chardata = this.regex.charAt(this.offset++);↵ | | 5 | this.chardata = this.regex.charAt(this.offset++);↵
|
6 | break; | | 6 | break;
|
See real code fragment |
|
See real code fragment |
Summary
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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 21 |
-
{Refactorable}
Mapping Summary
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) | 1.3 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
10 | case '\\': | | 118 | case '\\': |
11 | ret = T_BACKSOLIDUS; | | 119 | ret = T_BACKSOLIDUS; |
12 | if (this.offset >= this.regexlen) | | 120 | if (this.offset >= this.regexlen) |
13 | throw ex("parser.next.1", this.offset - 1); | | 121 | throw ex("parser.next.1", this.offset - 1); |
14 | this.chardata = this.regex.charAt(this.offset++); | | 122 | this.chardata = this.regex.charAt(this.offset++); |
15 | break; | | 123 | break; |
Precondition Violations (0)
Row |
Violation |