On Tue, 7 Mar 2023 03:53:59 GMT, Martin Buchholz <mar...@openjdk.org> wrote:

>>> @Martin-Buchholz @pavelrappo OTOH I see that DelayQueue _has already_ 
>>> overridden `remove(Object o)` so you should be able to modify that?
>> 
>> Right.  But remove(Object) unlike remove() doesn't consider the expiration 
>> time.  Confusing!
>
>> Right. But remove(Object) unlike remove() doesn't consider the expiration 
>> time. Confusing!
> 
> Actually, confusion extends to **three** methods with the same name:
> - `Queue.remove()`
> - `Collection.remove(Object)`
> - `Iterator.remove()`

@Martin-Buchholz Oh *that* remove() :)

-------------

PR: https://git.openjdk.org/jdk/pull/12729

Reply via email to