RFR: 8023339: (xs) Refine UOE conditions for removeIf()
paul.sandoz at oracle.com
Tue Sep 17 05:24:22 UTC 2013
On Sep 16, 2013, at 9:49 PM, Mike Duigou <mike.duigou at oracle.com> wrote:
> I think this is a reasonable compromise (and will be what I use for the other cases).
OK, +1 from me.
> On Sep 16 2013, at 01:13 , Paul Sandoz wrote:
>> Hi Mike,
>> I suppose there could also be implementations of removeIf that always throw UOE regardless of whether an element matched or not i.e. those that override just to throw UOE.
>> So perhaps:
>> * @throws UnsupportedOperationException if elements cannot be removed
>> * from this collection. Implementations may throw this exception if a
>> * matching element cannot be removed or if, in general, removal is not
>> * supported.
More information about the core-libs-dev