EStructuralFeature oldFeature = feature;
feature = (EStructuralFeature)EcoreUtil.resolve(feature, this);
if (feature != oldFeature)
{
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangePackage.FEATURE_CHANGE__FEATURE, oldFeature, feature));
}
eFlags &= ~ EPROXY_FEATURECHANGE;
EStructuralFeature oldFeature = feature;
feature = (EStructuralFeature)EcoreUtil.resolve(feature, this);
if (feature != oldFeature)
{
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangePackage.FEATURE_CHANGE__FEATURE, oldFeature, feature));
}
eFlags &= ~ EPROXY_FEATURECHANGE;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/change/impl/FeatureChangeImpl.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/change/impl/FeatureMapEntryImpl.java
|
Method name: EStructuralFeature getFeature()
|
|
Method name: EStructuralFeature getFeature()
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | EStructuralFeature oldFeature = feature;↵ | | 1 | EStructuralFeature oldFeature = feature;↵
|
2 | feature = (EStructuralFeature)EcoreUtil.resolve(feature, this);↵ | | 2 | feature = (EStructuralFeature)EcoreUtil.resolve(feature, this);↵
|
3 | if (feature != oldFeature)↵ | | 3 | if (feature != oldFeature)↵
|
4 | {↵ | | 4 | {↵
|
5 | if (eNotificationRequired())↵ | | 5 | if (eNotificationRequired())↵
|
6 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangePackage.FEATURE_CHANGE__FEATURE, oldFeature, feature));↵ | | 6 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangePackage.FEATURE_CHANGE__FEATURE, oldFeature, feature));↵
|
7 | }↵ | | 7 | }↵
|
8 | eFlags &= ~ EPROXY_FEATURECHANGE; | | 8 | eFlags &= ~ EPROXY_FEATURECHANGE;
|
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 10 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 6 |
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.8 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
5 | EStructuralFeature oldFeature = feature; | | 6 | EStructuralFeature oldFeature = feature; |
6 | feature = (EStructuralFeature)EcoreUtil.resolve(feature, this); | | 7 | feature = (EStructuralFeature)EcoreUtil.resolve(feature, this); |
7 | if (feature != oldFeature) | | 8 | if (feature != oldFeature) |
8 | if (eNotificationRequired()) | | 9 | if (eNotificationRequired()) |
9 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangePackage.FEATURE_CHANGE__FEATURE, oldFeature, feature)); | | 10 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangePackage.FEATURE_CHANGE__FEATURE, oldFeature, feature)); |
10 | eFlags &= ~EPROXY_FEATURECHANGE; | | 11 | eFlags &= ~EPROXY_FEATURECHANGE; |
Precondition Violations (0)
Row |
Violation |