hg: lambda/lambda/jdk: Docs.
brian.goetz at oracle.com
Fri Mar 22 10:28:48 PDT 2013
There's an exception for removals through Iterator.remove. If you
remove via Collection.remove(), you'll trigger the mod count logic, but
not via Iterator.remove().
On 3/22/2013 1:14 PM, Paul Benedict wrote:
> I have a question on Collection.removeAll().
> The code is using iterator() to loop through the collection and remove()
> items. I thought it was best-practice (or almost a requirement) not to
> continue iterating through a collection once you remove() any item because
> collections are designed to fail-fast?
> On Fri, Mar 22, 2013 at 11:59 AM, <paul.sandoz at oracle.com> wrote:
>> Changeset: 966eb5cf1944
>> Author: psandoz
>> Date: 2013-03-22 17:54 +0100
>> URL: http://hg.openjdk.java.net/lambda/lambda/jdk/rev/966eb5cf1944
>> ! src/share/classes/java/util/Collection.java
>> ! src/share/classes/java/util/List.java
>> ! src/share/classes/java/util/Set.java
>> ! src/share/classes/java/util/SortedSet.java
More information about the lambda-dev