CloneSet63


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
56201.000executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
156920
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/notify/impl/DelegatingNotifyingListImpl.java
256935
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/notify/impl/NotifyingListImpl.java
Next
Last
Clone Instance
1
Line Count
56
Source Line
920
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/notify/impl/DelegatingNotifyingListImpl.java

if (result) {
  if (positions != null) {
    int collectionSize = collection.size();
    NotificationImpl notification = (collectionSize == 1 ? createNotification(Notification.REMOVE, collection.iterator().next(), null, positions[0], oldIsSet): createNotification(Notification.REMOVE_MANY, collection, positions, positions[0], oldIsSet));
    NotificationChain notifications = createNotificationChain(collectionSize);
    if (hasInverse()) {
      for (Iterator<? > i = collection.iterator(); i.hasNext();) {
        @SuppressWarnings("unchecked")E object = (E) i.next();
        notifications = inverseRemove(object, notifications);
      }
      if (notifications == null) {
        dispatchNotification(notification);
      }
      else {
        notifications.add(notification);
        notifications.dispatch();
      }
    }
    else {
      if (notifications == null) {
        dispatchNotification(notification);
      }
      else {
        notifications.add(notification);
        notifications.dispatch();
      }
    }
  }
  else
    if (hasInverse()) {
      NotificationChain notifications = createNotificationChain(collection.size());
      for (Iterator<? > i = collection.iterator(); i.hasNext();) {
        @SuppressWarnings("unchecked")E object = (E) i.next();
        notifications = inverseRemove(object, notifications);
      }
      if (notifications != null)
        notifications.dispatch();
    }
  return true;
}
else {
  return false;
}


First
Previous
Clone Instance
2
Line Count
56
Source Line
935
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/notify/impl/NotifyingListImpl.java

if (result) {
  if (positions != null) {
    int collectionSize = collection.size();
    NotificationImpl notification = (collectionSize == 1 ? createNotification(Notification.REMOVE, collection.iterator().next(), null, positions[0], oldIsSet): createNotification(Notification.REMOVE_MANY, collection, positions, positions[0], oldIsSet));
    NotificationChain notifications = createNotificationChain(collectionSize);
    if (hasInverse()) {
      for (Iterator<? > i = collection.iterator(); i.hasNext();) {
        @SuppressWarnings("unchecked")E object = (E) i.next();
        notifications = inverseRemove(object, notifications);
      }
      if (notifications == null) {
        dispatchNotification(notification);
      }
      else {
        notifications.add(notification);
        notifications.dispatch();
      }
    }
    else {
      if (notifications == null) {
        dispatchNotification(notification);
      }
      else {
        notifications.add(notification);
        notifications.dispatch();
      }
    }
  }
  else
    if (hasInverse()) {
      NotificationChain notifications = createNotificationChain(collection.size());
      for (Iterator<? > i = collection.iterator(); i.hasNext();) {
        @SuppressWarnings("unchecked")E object = (E) i.next();
        notifications = inverseRemove(object, notifications);
      }
      if (notifications != null)
        notifications.dispatch();
    }
  return true;
}
else {
  return false;
}


Clone AbstractionParameter Count: 0Parameter Bindings

if (result) {
  if (positions != null) {
    int collectionSize = collection.size();
    NotificationImpl notification = (collectionSize == 1 ? createNotification(Notification.REMOVE, collection.iterator().next(), null, positions[0], oldIsSet): createNotification(Notification.REMOVE_MANY, collection, positions, positions[0], oldIsSet));
    NotificationChain notifications = createNotificationChain(collectionSize);
    if (hasInverse()) {
      for (Iterator<? > i = collection.iterator(); i.hasNext();) {
        @SuppressWarnings("unchecked")E object = (E) i.next();
        notifications = inverseRemove(object, notifications);
      }
      if (notifications == null) {
        dispatchNotification(notification);
      }
      else {
        notifications.add(notification);
        notifications.dispatch();
      }
    }
    else {
      if (notifications == null) {
        dispatchNotification(notification);
      }
      else {
        notifications.add(notification);
        notifications.dispatch();
      }
    }
  }
  else
    if (hasInverse()) {
      NotificationChain notifications = createNotificationChain(collection.size());
      for (Iterator<? > i = collection.iterator(); i.hasNext();) {
        @SuppressWarnings("unchecked")E object = (E) i.next();
        notifications = inverseRemove(object, notifications);
      }
      if (notifications != null)
        notifications.dispatch();
    }
  return true;
}
else {
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None