CloneSet1042


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12201.000method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112892
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java
212763
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/DelegatingEList.java
Next
Last
Clone Instance
1
Line Count
12
Source Line
892
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java

/**
 * Removes the object from the list and returns whether the object was actually contained by the list.
 * This implementation uses {@link #indexOf indexOf} to find the object
 * and delegates to {@link #remove(int) remove(int)} 
 * in the case that it finds the object.
 * @param object the object to be removed.
 * @return whether the object was actually contained by the list.
 */
@Override public boolean remove(Object object) {
  int index = indexOf(object);
  if (index >= 0) {
    remove(index);
    return true;
  }
  else {
    return false;
  }
}


First
Previous
Clone Instance
2
Line Count
12
Source Line
763
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/DelegatingEList.java

/**
 * Removes the object from the list and returns whether the object was actually contained by the list.
 * This implementation uses {@link #indexOf indexOf} to find the object
 * and delegates to {@link #remove(int) remove(int)} 
 * in the case that it finds the object.
 * @param object the object to be removed.
 * @return whether the object was actually contained by the list.
 */
@Override public boolean remove(Object object) {
  int index = indexOf(object);
  if (index >= 0) {
    remove(index);
    return true;
  }
  else {
    return false;
  }
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
   * Removes the object from the list and returns whether the object was actually contained by the list.
   * This implementation uses {@link #indexOf indexOf} to find the object
   * and delegates to {@link #remove(int) remove(int)} 
   * in the case that it finds the object.
   * @param object the object to be removed.
   * @return whether the object was actually contained by the list.
   */
@Override public boolean remove(Object object) {
  int index = indexOf(object);
  if (index >= 0) {
    remove(index);
    return true;
  }
  else {
    return false;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None