case '\'':
{
int end = predicate.indexOf('\'', ++index);
values.add(eDecodeValue(predicate.substring(index, end), eFactory, eDataType));
index = end + 1;
break;
case '"':
{
int end = predicate.indexOf('"', ++index);
values.add(eDecodeValue(predicate.substring(index, end), eFactory, eDataType));
index = end + 1;
break;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/BasicEObjectImpl.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/BasicEObjectImpl.java
|
Method name: EObject eObjectForURIFragmentPredicate(String, EReference)
|
|
Method name: EObject eObjectForURIFragmentPredicate(String, EReference)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | case '\'':↵ | | 1 | case '"':↵
|
2 | {↵ | | 2 | {↵
|
3 | int end = predicate.indexOf('\'', ++index);↵ | | 3 | int end = predicate.indexOf('"', ++index);↵
|
4 | values.add(eDecodeValue(predicate.substring(index, end), eFactory, eDataType));↵ | | 4 | values.add(eDecodeValue(predicate.substring(index, end), eFactory, eDataType));↵
|
5 | index = end + 1;↵ | | 5 | index = end + 1;↵
|
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 26 |
-
{Refactorable}
Mapping Summary
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) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
25 | case '\'': | | 30 | case '"': |
26 | int end = predicate.indexOf('\'', ++index); | | 31 | int end = predicate.indexOf('"', ++index); |
27 | values.add(eDecodeValue(predicate.substring(index, end), eFactory, eDataType)); | | 32 | values.add(eDecodeValue(predicate.substring(index, end), eFactory, eDataType)); |
28 | index = end + 1; | | 33 | index = end + 1; |
29 | break; | | 34 | break; |
Precondition Violations (0)
Row |
Violation |