History log of /libcore/luni/src/main/java/java/util/concurrent/CopyOnWriteArrayList.java
Revision Date Author Comments
6186821cb13f4ac7ff50950c813394367e021eae 08-Feb-2011 Jesse Wilson <jessewilson@google.com> Move libcore.base classes to libcore.util and libcore.io.

Change-Id: I2340a9dbad3561fa681a8ab47d4f406e72c913e3
803e7dbaa65a62ec77596d5ebb7218a21c4cbfaf 05-Jan-2011 Jesse Wilson <jessewilson@google.com> Fix serialization in CopyOnWriteArrayList.

Previously we were double-serializing the elements field. The behavior was
correct but the serialized data was larger than necessary.

This also addresses martinrb's other comments on the new CopyOnWriteArrayList.

Change-Id: I191e84793301e81b89718330d897bdf990c8daa6
a57abd43935b5d1ee8e226ceb0c8f3c3c9da8f59 14-Dec-2010 Jesse Wilson <jessewilson@google.com> Fix two {@link} problems in CopyOnWriteArrayList.

One @link was supposed to point to lastIndexOf; that was a typo.

DroidDoc is choking on the #indexOf(Object,int) overload; I'll drop
the method list which should make it happy.

Change-Id: I79cc3548d628ad3380b9f3d0d7c03f606a3c8801
3ce783438eccf18d0ad538d911585043b5d1b2b4 11-Dec-2010 Jesse Wilson <jessewilson@google.com> Rewrite CopyOnWriteArrayList from scratch.

The previous implementation has many structural problems motivating
this rewrite. In particular, changes to sublists behaved quite
inconsistently with the RI.

This passes the tests in the Google Collections test suite.

Change-Id: I49c4a50659ef1f35dbff4abdd596d7fda815bcfe
http://b/3270784
fcd6cf989712aabe2826655df490d73e2240fb21 10-Dec-2010 Jesse Wilson <jessewilson@google.com> Fix various issues in CopyOnWriteArrayList discovered by Google Collections' test suite:

Fixed CopyOnWriteArrayList problems:
- addAll() doesn't return true if the collection is empty
- clear() fails on an empty list
- containsAll() doesn't return true if the collection is empty
- subList() fails on an empty range
- subList() doesn't implement equals(), hashCode() or toString()

Fixed CopyOnWriteArraySet problems:
- addAll() adds duplicates if the added collection contains duplicates
- equals() throws NullPointerException if this is empty

The following issues aren't fixed:
- the iterator throws UnsupportedOperationException when it should throw
IllegalStateException
- sublists don't reflect non-structural changes in the underlying list

http://b/3270784
Change-Id: I8c174e4ceda1ff964e2ad8224fa7338dac552288
aeeaa64fb691606d39bd24305001a4f4c71acdc3 30-Oct-2010 Dan Bornstein <danfuzz@android.com> Replace the implementation of this class.

Use the Apache Harmony version.

Change-Id: I5b9d6fac10dcaf20e16fccb73cfc2ae7110a683d
7365de1056414750d0a7d1fdd26025fd247f0d04 12-Aug-2010 Jesse Wilson <jessewilson@google.com> Sorting imports.

Change-Id: I8347bc625480a1c37a1ed9976193ddfedeb00bbc
cec4dd4b1d33f78997603d0f89c0d0e56e64dbcd 26-Apr-2010 Peter Hallam <peterhal@google.com> merge more modules into luni