Integrated: 8343125: Correct the documentation for TreeMap's getFloorEntry and getCeilingEntry

Naman Nigam duke at openjdk.org
Mon Nov 18 18:32:54 UTC 2024


On Sat, 26 Oct 2024 14:06:37 GMT, Naman Nigam <duke at openjdk.org> wrote:

> As the documentation of getCeilingEntry currently reads, the inference is misleading as follows:
> 
> if no such entry exists, returns the entry for the least key greater than the specified key;
> if no such entry exists (i.e., the greatest key in the Tree is less than the specified key), returns {@code null}
> Have modified the first section to ensure that its clear that the value returned is upon existence of the key. Added a similar change for getFloorEntry.

This pull request has now been integrated.

Changeset: e9e4200a
Author:    Naman Nigam <namannigam12 at gmail.com>
Committer: Chen Liang <liach at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e9e4200a6aaacc11442f0298525e2531bf08240e
Stats:     8 lines in 1 file changed: 0 ins; 2 del; 6 mod

8343125: Correct the documentation for TreeMap's getFloorEntry and getCeilingEntry

Reviewed-by: liach, acobbs

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

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


More information about the core-libs-dev mailing list