RFR: 8337205: Typo in Stack vs Deque Method table in Deque specification

Turkhan duke at openjdk.org
Tue Aug 6 14:10:59 UTC 2024


On Tue, 6 Aug 2024 06:48:52 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> This PR fixes `java.util.Deque`'s specification to name `peekFirst()` as an equivalent to Stack's `peek()` method since both of them don't throw when a collection is empty. This is not the case with the current `getFirst()` method.
>> 
>> Please let me know if I have to fix something in the PR. Will appreciate your guidance since this is my first PR to JDK.
>
> Thanks for taking a look at this @tbadalov and sorry for the slow progress of OCA.

Thanks for the follow-up, @minborg! Glad that it is in progress

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

PR Comment: https://git.openjdk.org/jdk/pull/20363#issuecomment-2270903840


More information about the core-libs-dev mailing list