if (isResolveProxies())
{
settingDelegate = new InternalSettingDelegateSingleContainerResolving((EClass)eType, this, eOpposite);
}
else
{
settingDelegate = new InternalSettingDelegateSingleContainer((EClass)eType, this, eOpposite);
}
if (isResolveProxies())
{
settingDelegate = new InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving((EClass)eType, this, eOpposite);
}
else
{
settingDelegate = new InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable((EClass)eType, this, eOpposite);
}
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: EStructuralFeature.Internal.SettingDelegate getSettingDelegate()
|
|
Method name: EStructuralFeature.Internal.SettingDelegate getSettingDelegate()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if (isResolveProxies())↵ | | 1 | if (isResolveProxies())↵
|
2 | {↵ | | 2 | ↵
|
| | | 3 | {↵
|
3 | settingDelegate = new InternalSettingDelegateSingleContainerResolving((EClass)eType, this, eOpposite);↵ | | 4 | settingDelegate = new InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving((EClass)eType, this, eOpposite);↵
|
4 | }↵ | | 5 | ↵
|
| | | 6 | }↵
|
5 | else↵ | | 7 | else↵
|
6 | {↵ | | 8 | ↵
|
| | | 9 | {↵
|
7 | settingDelegate = new InternalSettingDelegateSingleContainer((EClass)eType, this, eOpposite);↵ | | 10 | settingDelegate = new InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable((EClass)eType, this, eOpposite);↵
|
8 | } | | 11 | }
|
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.1 |
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) | 1.4 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
115 | if (isResolveProxies()) | | 138 | if (isResolveProxies()) |
116 | settingDelegate = new InternalSettingDelegateSingleContainerResolving((EClass)eType, this, eOpposite); | | 139 | settingDelegate = new InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving((EClass)eType, this, eOpposite); |
| | | | |
117 | settingDelegate = new InternalSettingDelegateSingleContainer((EClass)eType, this, eOpposite); | | 140 | settingDelegate = new InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable((EClass)eType, this, eOpposite); |
Precondition Violations (0)
Row |
Violation |