if (ch >= 0x10000)
buffer.append(REUtil.decomposeToSurrogates(ch));
else
buffer.append((char)ch);
if (ch >= 0x10000)
buffer.append(REUtil.decomposeToSurrogates(ch));
else
buffer.append((char)ch);
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 addChild(Token)
|
|
Method name: void addChild(Token)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if (ch >= 0x10000)↵ | | 1 | if (ch >= 0x10000)↵
|
2 | buffer.append(REUtil.decomposeToSurrogates(ch));↵ | | 2 | buffer.append(REUtil.decomposeToSurrogates(ch));↵
|
3 | else↵ | | 3 | else↵
|
4 | buffer.append((char)ch); | | 4 | buffer.append((char)ch);
|
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 | 10 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 3 |
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) | 0.9 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
25 | if (ch >= 0x10000) | | 34 | if (ch >= 0x10000) |
26 | buffer.append(REUtil.decomposeToSurrogates(ch)); | | 35 | buffer.append(REUtil.decomposeToSurrogates(ch)); |
| | | | |
27 | | | 36 | |
Precondition Violations (0)
Row |
Violation |