On May 27, 2013, at 3:05 PM, Doug Lea <[email protected]> wrote: >> >> - The default for getOrDefault() in ConcurrentMap shouldn't be removed. >> >> - CopyOnWriteArraySet currently has an ORDERED spliterator. Set is not >> normally order preserving. >> > > Thanks! Both the results of my not rechecking vs lambda versions > (where a lot of this code has been running for a while now). > Hopefully no other three-way diffs of jsr166, lambda, tl > fell between cracks. >
I flip-flopped on this one, since the use of CopyOnWriteArrayList by CopyOnWriteArraySet is explicitly stated but it is not explictly stated that CopyOnWriteArraySet.add defers to CopyOnWriteArrayList.addIfAbsent. Paul.
