EObject oldReferenceValue = basicGetReferenceValue(); value = newReferenceValue; valueString = null; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ChangePackage.FEATURE_CHANGE__REFERENCE_VALUE, oldReferenceValue, newReferenceValue));
EObject oldReferenceValue = basicGetReferenceValue(); value = newReferenceValue; valueString = null; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ChangePackage.FEATURE_CHANGE__REFERENCE_VALUE, oldReferenceValue, newReferenceValue));
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: void setReferenceValue(EObject) Method name: void setReferenceValue(EObject)
Number of AST nodes: 5 Number of AST nodes: 5
1
EObject oldReferenceValue = basicGetReferenceValue();
1
EObject oldReferenceValue = basicGetReferenceValue();
2
    value = newReferenceValue;
2
    value = newReferenceValue;
3
    valueString = null;
3
    valueString = null;
4
    if (eNotificationRequired())
4
    if (eNotificationRequired())
5
      eNotify(new ENotificationImpl(this, Notification.SET, ChangePackage.FEATURE_CHANGE__REFERENCE_VALUE, oldReferenceValue, newReferenceValue));
5
      eNotify(new ENotificationImpl(this, Notification.SET, ChangePackage.FEATURE_CHANGE__REFERENCE_VALUE, oldReferenceValue, newReferenceValue));
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.1
Clones locationClones are in different classes having the same super class
Number of node comparisons8
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.0
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    1
    EObject oldReferenceValue = basicGetReferenceValue();
    1
    EObject oldReferenceValue = basicGetReferenceValue();
    2
    value = newReferenceValue;
    2
    value = newReferenceValue;
    3
    valueString = null;
    3
    valueString = null;
    4
    if (eNotificationRequired())
    4
    if (eNotificationRequired())
    5
    eNotify(new ENotificationImpl(this, Notification.SET, ChangePackage.FEATURE_CHANGE__REFERENCE_VALUE, oldReferenceValue, newReferenceValue));
    5
    eNotify(new ENotificationImpl(this, Notification.SET, ChangePackage.FEATURE_CHANGE__REFERENCE_VALUE, oldReferenceValue, newReferenceValue));
    Precondition Violations (0)
    Row Violation