CloneSet67


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
56201.000class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
156325
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/BasicFeatureMap.java
256343
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/DelegatingFeatureMap.java
Next
Last
Clone Instance
1
Line Count
56
Source Line
325
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/BasicFeatureMap.java

@Override public NotificationChain shadowSet(Entry oldObject, Entry newObject, NotificationChain notifications) {
  if (isNotificationRequired()) {
    EStructuralFeature feature = oldObject.getEStructuralFeature();
    Object oldValue = oldObject.getValue();
    Object newValue = newObject.getValue();
    NotificationImpl notification = createNotification(Notification.SET, feature, oldValue, newValue, feature.isMany() ? indexOf(feature, newValue): Notification.NO_INDEX, true);
    if (notifications != null) {
      notifications.add(notification);
    }
    else {
      notifications = notification;
    }
  }
  return notifications;
}

public NotificationChain inverseTouch(Object object, NotificationChain notifications) {
  if (isNotificationRequired()) {
    Entry entry = (Entry) object;
    EStructuralFeature feature = entry.getEStructuralFeature();
    Object value = entry.getValue();
    NotificationImpl notification = createNotification(Notification.SET, feature, value, value, feature.isMany() ? indexOf(feature, value): Notification.NO_INDEX, true);
    if (notifications != null) {
      notifications.add(notification);
    }
    else {
      notifications = notification;
    }
  }
  return notifications;
}


First
Previous
Clone Instance
2
Line Count
56
Source Line
343
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/DelegatingFeatureMap.java

@Override public NotificationChain shadowSet(Entry oldObject, Entry newObject, NotificationChain notifications) {
  if (isNotificationRequired()) {
    EStructuralFeature feature = oldObject.getEStructuralFeature();
    Object oldValue = oldObject.getValue();
    Object newValue = newObject.getValue();
    NotificationImpl notification = createNotification(Notification.SET, feature, oldValue, newValue, feature.isMany() ? indexOf(feature, newValue): Notification.NO_INDEX, true);
    if (notifications != null) {
      notifications.add(notification);
    }
    else {
      notifications = notification;
    }
  }
  return notifications;
}

public NotificationChain inverseTouch(Object object, NotificationChain notifications) {
  if (isNotificationRequired()) {
    Entry entry = (Entry) object;
    EStructuralFeature feature = entry.getEStructuralFeature();
    Object value = entry.getValue();
    NotificationImpl notification = createNotification(Notification.SET, feature, value, value, feature.isMany() ? indexOf(feature, value): Notification.NO_INDEX, true);
    if (notifications != null) {
      notifications.add(notification);
    }
    else {
      notifications = notification;
    }
  }
  return notifications;
}


Clone AbstractionParameter Count: 0Parameter Bindings

@Override public NotificationChain shadowSet(Entry oldObject, Entry newObject, NotificationChain notifications) {
  if (isNotificationRequired()) {
    EStructuralFeature feature = oldObject.getEStructuralFeature();
    Object oldValue = oldObject.getValue();
    Object newValue = newObject.getValue();
    NotificationImpl notification = createNotification(Notification.SET, feature, oldValue, newValue, feature.isMany() ? indexOf(feature, newValue): Notification.NO_INDEX, true);
    if (notifications != null) {
      notifications.add(notification);
    }
    else {
      notifications = notification;
    }
  }
  return notifications;
}

public NotificationChain inverseTouch(Object object, NotificationChain notifications) {
  if (isNotificationRequired()) {
    Entry entry = (Entry) object;
    EStructuralFeature feature = entry.getEStructuralFeature();
    Object value = entry.getValue();
    NotificationImpl notification = createNotification(Notification.SET, feature, value, value, feature.isMany() ? indexOf(feature, value): Notification.NO_INDEX, true);
    if (notifications != null) {
      notifications.add(notification);
    }
    else {
      notifications = notification;
    }
  }
  return notifications;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None