if (intrinsicDefaultValue != null)
{
settings.dynamicSet(index, null);
newValue = defaultValue;
}
else if (defaultValue != null)
{
settings.dynamicSet(index, NIL);
}
else
{
settings.dynamicSet(index, null);
}
if (newValue == null)
{
if (intrinsicDefaultValue != null)
{
settings.dynamicSet(index, null);
}
else
{
settings.dynamicSet(index, NIL);
}
}
else
{
validate(newValue);
settings.dynamicSet(index, newValue);
}
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EStructuralFeatureImpl.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EStructuralFeatureImpl.java
|
Method name: void dynamicSet(InternalEObject, EStructuralFeature.Internal.DynamicValueHolder, int, Object)
|
|
Method name: void dynamicSet(InternalEObject, EStructuralFeature.Internal.DynamicValueHolder, int, Object)
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
| | | 1 | if (newValue == null)↵
|
| | | 2 | {↵
|
1 | if (intrinsicDefaultValue != null)↵ | | 3 | if (intrinsicDefaultValue != null)↵
|
2 | {↵ | | 4 | {↵
|
3 | settings.dynamicSet(index, null);↵ | | 5 | settings.dynamicSet(index, null);↵
|
4 | newValue = defaultValue;↵ | | 6 | ↵
|
5 | }↵ | | |
|
6 | else if (defaultValue != null)↵ | | 7 | }↵
|
| | | 8 | else ↵
|
7 | {↵ | | 9 | {↵
|
8 | settings.dynamicSet(index, NIL);↵ | | 10 | settings.dynamicSet(index, NIL);↵
|
9 | }↵ | | 11 | }↵
|
10 | ↵ | | 12 | }↵
|
11 | else↵ | | 13 | else↵
|
12 | {↵ | | 14 | {↵
|
13 | ↵ | | 15 | validate(newValue);↵
|
14 | settings.dynamicSet(index, null);↵ | | 16 | settings.dynamicSet(index, newValue);↵
|
15 | } | | 17 | }
|
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.2 |
Clones location | Clones are in the same java file |
Number of node comparisons | 2 |