ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/CopyOnWriteArrayList.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/CopyOnWriteArrayList.java (file contents):
Revision 1.115 by jsr166, Fri Jan 31 17:58:35 2014 UTC vs.
Revision 1.116 by jsr166, Sun Nov 23 18:46:47 2014 UTC

# Line 205 | Line 205 | public class CopyOnWriteArrayList<E>
205      /**
206       * Returns {@code true} if this list contains the specified element.
207       * More formally, returns {@code true} if and only if this list contains
208 <     * at least one element {@code e} such that
209 <     * <tt>(o==null&nbsp;?&nbsp;e==null&nbsp;:&nbsp;o.equals(e))</tt>.
208 >     * at least one element {@code e} such that {@code Objects.equals(o, e)}.
209       *
210       * @param o element whose presence in this list is to be tested
211       * @return {@code true} if this list contains the specified element
# Line 494 | Line 493 | public class CopyOnWriteArrayList<E>
493       * Removes the first occurrence of the specified element from this list,
494       * if it is present.  If this list does not contain the element, it is
495       * unchanged.  More formally, removes the element with the lowest index
496 <     * {@code i} such that
498 <     * <tt>(o==null&nbsp;?&nbsp;get(i)==null&nbsp;:&nbsp;o.equals(get(i)))</tt>
496 >     * {@code i} such that {@code Objects.equals(o, get(i))}
497       * (if such an element exists).  Returns {@code true} if this list
498       * contained the specified element (or equivalently, if this list
499       * changed as a result of the call).

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines