protected boolean doAddAllUnique(int index, Collection<? extends E> collection) { return super.addAllUnique(index, collection); } /** * Adds each object from start to end of the array to the end of the list; * it does no uniqueness checking. * This implementation delegates to {@link #addAllUnique(int, Object[], int, int) addAllUnique(int, Object[], int, int)}. * @param objects the objects to be added. * @param start the index of first object to be added. * @param end the index past the last object to be added. * @see #inverseAdd */ @Override public boolean addAllUnique(Object [] objects, int start, int end) { return addAllUnique(size(), objects, start, end); } /** * Adds each object from start to end of the array to the end of the list * and returns whether any objects were added; * it does no ranging checking, uniqueness checking, inverse updating, or notification. * @param objects the objects to be added. * @param start the index of first object to be added. * @param end the index past the last object to be added. * @return whether any objects were added. */ protected boolean doAddAllUnique(Object [] objects, int start, int end) { return super.addAllUnique(objects, start, end);
protected boolean doAddAllUnique(int index, Collection<? extends E> collection) { return super.addAllUnique(index, collection); } /** * Adds each object from start to end of the array to the end of the list * and returns whether any objects were added; * it does no uniqueness checking. * This implementation delegates to {@link #addAllUnique(int, Object[], int, int) addAllUnique(int, Object[], int, int)}. * @param objects the objects to be added. * @param start the index of first object to be added. * @param end the index past the last object to be added. * @return whether any objects were added. * @see #inverseAdd */ @Override public boolean addAllUnique(Object [] objects, int start, int end) { return addAllUnique(size, objects, start, end); } /** * Adds each object from start to end of the array to the end of the list * and returns whether any objects were added; * it does no ranging checking, uniqueness checking, inverse updating, or notification. * @param objects the objects to be added. * @param start the index of first object to be added. * @param end the index past the last object to be added. * @return whether any objects were added. */ protected boolean doAddAllUnique(Object [] objects, int start, int end) { return super.addAllUnique(objects, start, end);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/common/notify/impl/DelegatingNotifyingListImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/common/notify/impl/NotifyingListImpl.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
protected boolean doAddAllUnique(int index, Collection<? extends E> collection)
1
protected boolean doAddAllUnique(int index, Collection<? extends E> collection)
2
  {
2
  {
3
    return super.addAllUnique(index, collection);
3
    return super.addAllUnique(index, collection);
4
  }
4
  }
5
  /**
5
  /**
6
   * Adds each object from start to end of the array to the end of the list
6
   * Adds each object from start to end of the array to the end of the list
7
;
7
   * and returns whether any objects were added;
8
   * it does no uniqueness checking.
8
   * it does no uniqueness checking.
9
   * This implementation delegates to {@link #addAllUnique(int, Object[], int, int) addAllUnique(int, Object[], int, int)}.
9
   * This implementation delegates to {@link #addAllUnique(int, Object[], int, int) addAllUnique(int, Object[], int, int)}.
10
   * @param objects the objects to be added.
10
   * @param objects the objects to be added.
11
   * @param start the index of first object to be added.
11
   * @param start the index of first object to be added.
12
   * @param end the index past the last object to be added.
12
   * @param end the index past the last object to be added.
13
   * @return whether any objects were added.
13
   * @see #inverseAdd
14
   * @see #inverseAdd
14
   */
15
   */
15
  @Override
16
  @Override
16
  public boolean addAllUnique(Object [] objects, int start, int end)
17
  public boolean addAllUnique(Object [] objects, int start, int end)
17
  {
18
  {
18
    return addAllUnique(size(), objects, start, end);
19
    return addAllUnique(size, objects, start, end);
19
  }
20
  }
20
  /**
21
  /**
21
   * Adds each object from start to end of the array to the end of the list
22
   * Adds each object from start to end of the array to the end of the list
22
   * and returns whether any objects were added;
23
   * and returns whether any objects were added;
23
   * it does no ranging checking, uniqueness checking, inverse updating, or notification.
24
   * it does no ranging checking, uniqueness checking, inverse updating, or notification.
24
   * @param objects the objects to be added.
25
   * @param objects the objects to be added.
25
   * @param start the index of first object to be added.
26
   * @param start the index of first object to be added.
26
   * @param end the index past the last object to be added.
27
   * @param end the index past the last object to be added.
27
   * @return whether any objects were added.
28
   * @return whether any objects were added.
28
   */
29
   */
29
  protected boolean doAddAllUnique(Object [] objects, int start, int end)
30
  protected boolean doAddAllUnique(Object [] objects, int start, int end)
30
  {
31
  {
31
    return super.addAllUnique(objects, start, end);
32
    return super.addAllUnique(objects, start, end);
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0