RFR: 8343125: Correct the documentation for TreeMap's getFloorEntry and getCeilingEntry [v2]
Naman Nigam
duke at openjdk.org
Thu Nov 14 02:29:27 UTC 2024
> 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.
Naman Nigam has updated the pull request incrementally with one additional commit since the last revision:
JDK-8343125 : Resolve a bad merge
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/21729/files
- new: https://git.openjdk.org/jdk/pull/21729/files/47b580a8..905865a6
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=21729&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=21729&range=00-01
Stats: 2 lines in 1 file changed: 0 ins; 2 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/21729.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/21729/head:pull/21729
PR: https://git.openjdk.org/jdk/pull/21729
More information about the core-libs-dev
mailing list