RFR: JDK-8297605 DelayQueue javadoc is confusing
Viktor Klang
duke at openjdk.org
Tue Mar 7 10:31:09 UTC 2023
On Tue, 7 Mar 2023 03:53:59 GMT, Martin Buchholz <martin at 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
More information about the core-libs-dev
mailing list