CloneSet65


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

{
  boolean oldIsSet = isSet();
  doAddAllUnique(index, objects, start, end);
  NotificationImpl notification;
  if (collectionSize == 1) {
    notification = createNotification(Notification.ADD, null, objects[0], index, oldIsSet);
  }
  else {
    if (start != 0 || end != objects.length) {
      Object[] actualObjects = new Object[collectionSize];
      for (int i = 0, j = start; j < end; ++i, ++j) {
        actualObjects[i] = objects[j];
      }
      notification = createNotification(Notification.ADD_MANY, null, Arrays.asList(actualObjects), index, oldIsSet);
    }
    else {
      notification = createNotification(Notification.ADD_MANY, null, Arrays.asList(objects), index, oldIsSet);
    }
  }
  if (hasInverse()) {
    NotificationChain notifications = createNotificationChain(collectionSize);
    int lastIndex = index + collectionSize;
    for (int i = index; i < lastIndex; ++i) {
      E value = delegateGet(i);
      notifications = inverseAdd(value, notifications);
      notifications = shadowAdd(value, notifications);
    }
    if (notifications == null) {
      dispatchNotification(notification);
    }
    else {
      notifications.add(notification);
      notifications.dispatch();
    }
  }
  else {
    dispatchNotification(notification);
  }
}


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

{
  boolean oldIsSet = isSet();
  doAddAllUnique(index, objects, start, end);
  NotificationImpl notification;
  if (collectionSize == 1) {
    notification = createNotification(Notification.ADD, null, objects[0], index, oldIsSet);
  }
  else {
    if (start != 0 || end != objects.length) {
      Object[] actualObjects = new Object[collectionSize];
      for (int i = 0, j = start; j < end; ++i, ++j) {
        actualObjects[i] = objects[j];
      }
      notification = createNotification(Notification.ADD_MANY, null, Arrays.asList(actualObjects), index, oldIsSet);
    }
    else {
      notification = createNotification(Notification.ADD_MANY, null, Arrays.asList(objects), index, oldIsSet);
    }
  }
  if (hasInverse()) {
    NotificationChain notifications = createNotificationChain(collectionSize);
    int lastIndex = index + collectionSize;
    for (int i = index; i < lastIndex; ++i) {
      @SuppressWarnings("unchecked")E value = (E) data[i];
      notifications = inverseAdd(value, notifications);
      notifications = shadowAdd(value, notifications);
    }
    if (notifications == null) {
      dispatchNotification(notification);
    }
    else {
      notifications.add(notification);
      notifications.dispatch();
    }
  }
  else {
    dispatchNotification(notification);
  }
}


Clone AbstractionParameter Count: 2Parameter Bindings

{
  boolean oldIsSet = isSet();
  doAddAllUnique(index, objects, start, end);
  NotificationImpl notification;
  if (collectionSize == 1) {
    notification = createNotification(Notification.ADD, null, objects[0], index, oldIsSet);
  }
  else {
    if (start != 0 || end != objects.length) {
      Object[] actualObjects = new Object[collectionSize];
      for (int i = 0, j = start; j < end; ++i, ++j) {
        actualObjects[i] = objects[j];
      }
      notification = createNotification(Notification.ADD_MANY, null, Arrays.asList(actualObjects), index, oldIsSet);
    }
    else {
      notification = createNotification(Notification.ADD_MANY, null, Arrays.asList(objects), index, oldIsSet);
    }
  }
  if (hasInverse()) {
    NotificationChain notifications = createNotificationChain(collectionSize);
    int lastIndex = index + collectionSize;
    for (int i = index; i < lastIndex; ++i) {
       [[#variable1464aac0]]E value = [[#variable1464aa60]];
      notifications = inverseAdd(value, notifications);
      notifications = shadowAdd(value, notifications);
    }
    if (notifications == null) {
      dispatchNotification(notification);
    }
    else {
      notifications.add(notification);
      notifications.dispatch();
    }
  }
  else {
    dispatchNotification(notification);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1464aac0]]
12[[#1464aac0]]
@SuppressWarnings("unchecked") 
21[[#1464aa60]]
delegateGet(i) 
22[[#1464aa60]]
(E) data[i]