On Sat, 26 Oct 2024 14:06:37 GMT, Naman Nigam <d...@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 <namanniga...@gmail.com> Committer: Chen Liang <li...@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