CloneSet159


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

{
  boolean oldIsSet = isSet();
  doAddAllUnique(index, collection);
  NotificationImpl notification = collectionSize == 1 ? createNotification(Notification.ADD, null, collection.iterator().next(), index, oldIsSet): createNotification(Notification.ADD_MANY, null, collection, 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
30
Source Line
444
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/notify/impl/NotifyingListImpl.java

{
  boolean oldIsSet = isSet();
  doAddAllUnique(index, collection);
  NotificationImpl notification = collectionSize == 1 ? createNotification(Notification.ADD, null, collection.iterator().next(), index, oldIsSet): createNotification(Notification.ADD_MANY, null, collection, 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, collection);
  NotificationImpl notification = collectionSize == 1 ? createNotification(Notification.ADD, null, collection.iterator().next(), index, oldIsSet): createNotification(Notification.ADD_MANY, null, collection, index, oldIsSet);
  if (hasInverse()) {
    NotificationChain notifications = createNotificationChain(collectionSize);
    int lastIndex = index + collectionSize;
    for (int i = index; i < lastIndex; ++i) {
       [[#variable171366a0]]E value = [[#variable17136640]];
      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[[#171366a0]]
12[[#171366a0]]
@SuppressWarnings("unchecked") 
21[[#17136640]]
delegateGet(i) 
22[[#17136640]]
(E) data[i]