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;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in different classes having the same super class
Number of node comparisons10
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.8
    Clone typeType 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