CloneSet216


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

// If any objects are matched.
//
if (count > 0) {
  result = true;
  if (hasShadow()) {
    // Remove from by position in reverse order.
    //
    for (int i = 0; i < count; ++i) {
      @SuppressWarnings("unchecked")E object = (E) objects[i];
      notifications = shadowRemove(object, notifications);
    }
  }
  // Remove from by position in reverse order.
  //
  for (int i = count; --i >= 0;) {
    doRemove(positions[i]);
  }
  // Compact the results to remove unmatched objects
  //
  if (count != listSize) {
    for (int i = listSize; --i >= count;) {
      list.remove(i);
    }
    int[] oldPositions = positions;
    positions = new int[count];
    System.arraycopy(oldPositions, 0, positions, 0, count);
  }
  collection = list;
}


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

// If any objects are matched.
//
if (count > 0) {
  result = true;
  if (hasShadow()) {
    // Remove from by position in reverse order.
    //
    for (int i = 0; i < count; ++i) {
      @SuppressWarnings("unchecked")E object = (E) objects[i];
      notifications = shadowRemove(object, notifications);
    }
  }
  // Remove from by position in reverse order.
  //
  for (int i = count; --i >= 0;) {
    doRemove(positions[i]);
  }
  // Compact the results to remove unmatched objects
  //
  if (count != listSize) {
    for (int i = listSize; --i >= count;) {
      list.remove(i);
    }
    int[] oldPositions = positions;
    positions = new int[count];
    System.arraycopy(oldPositions, 0, positions, 0, count);
  }
  collection = list;
}


Clone AbstractionParameter Count: 0Parameter Bindings

// If any objects are matched.
//
if (count > 0) {
  result = true;
  if (hasShadow()) {
    // Remove from by position in reverse order.
    //
    for (int i = 0; i < count; ++i) {
      @SuppressWarnings("unchecked")E object = (E) objects[i];
      notifications = shadowRemove(object, notifications);
    }
  }
  // Remove from by position in reverse order.
  //
  for (int i = count; --i >= 0;) {
    doRemove(positions[i]);
  }
  // Compact the results to remove unmatched objects
  //
  if (count != listSize) {
    for (int i = listSize; --i >= count;) {
      list.remove(i);
    }
    int[] oldPositions = positions;
    positions = new int[count];
    System.arraycopy(oldPositions, 0, positions, 0, count);
  }
  collection = list;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None