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

Turkhan duke at openjdk.org
Thu Aug 8 05:37:41 UTC 2024


On Fri, 26 Jul 2024 21:06:31 GMT, Turkhan <duke 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.

This pull request has now been integrated.

Changeset: 1846a65e
Author:    Turkhan Badalov <badalov.turxan at gmail.com>
Committer: Chen Liang <liach at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/1846a65e32624f6da691c1072f44fcb762b43233
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

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

Reviewed-by: liach

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

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


More information about the core-libs-dev mailing list