String stringValue = value.toString();
if (escape != null)
{
stringValue = escape.convertLines(stringValue);
}
String stringValue = value.toString();
if (escape != null)
{
stringValue = escape.convertLines(stringValue);
}
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLSaveImpl.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLSaveImpl.java
|
Method name: boolean saveElementFeatureMap(EObject, EStructuralFeature)
|
|
Method name: boolean saveElementFeatureMap(EObject, EStructuralFeature)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | String stringValue = value.toString();↵ | | 1 | String stringValue = value.toString();↵
|
2 | if (escape != null)↵ | | 2 | if (escape != null)↵
|
3 | {↵ | | 3 | {↵
|
4 | stringValue = escape.convertLines(stringValue);↵ | | 4 | stringValue = escape.convertLines(stringValue);↵
|
5 | } | | 5 | }
|
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 7 |
-
{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) | 3.2 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
35 | String stringValue = value.toString(); | | 44 | String stringValue = value.toString(); |
36 | if (escape != null) | | 45 | if (escape != null) |
37 | stringValue = escape.convertLines(stringValue); | | 46 | stringValue = escape.convertLines(stringValue); |
Precondition Violations (0)
Row |
Violation |