if (valueString == null)
{
EStructuralFeature feature = getFeature();
if (feature instanceof EAttribute)
{
EDataType type = (EDataType)feature.getEType();
valueString = EcoreUtil.convertToString(type, value);
}
}
return valueString;
if (eAttributeType == null)
{
EClassifier eType = basicGetEType();
if (eType instanceof EDataType)
{
eAttributeType = (EDataType)eType;
}
}
return eAttributeType;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/change/impl/FeatureMapEntryImpl.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EAttributeImpl.java
|
Method name: String getDataValue()
|
|
Method name: EDataType basicGetEAttributeType()
|
Number of AST nodes: 6
|
|
Number of AST nodes: 5
|
|
1 | if (valueString == null)↵ | | 1 | if (eAttributeType == null)↵
|
2 | {↵ | | 2 | {↵
|
3 | EStructuralFeature feature = getFeature();↵ | | 3 | EClassifier eType = basicGetEType();↵
|
4 | if (feature instanceof EAttribute)↵ | | 4 | if (eType instanceof EDataType)↵
|
5 | {↵ | | 5 | {↵
|
6 | EDataType type = (EDataType)feature.getEType();↵ | | 6 | eAttributeType = (EDataType)↵
|
7 | valueString = EcoreUtil.convertToString(type, value);↵ | | 7 | eType;↵
|
8 | }↵ | | 8 | }↵
|
9 | }↵ | | 9 | }↵
|
10 | return valueString; | | 10 | return eAttributeType;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 1 |