RFR: 8293630: Simplify TreeMap.get() with Comparator.naturalOrder()
Сергей Цыпанов
duke at openjdk.org
Thu Oct 13 10:12:16 UTC 2022
On Wed, 17 Aug 2022 11:23:57 GMT, Сергей Цыпанов <duke at openjdk.org> wrote:
> We can use `Comparator.naturalOrder()` for cases when a `TreeMap` instance is constructed without comparator. This allows to squash two branches in `TreeMap.get()` into one.
>
> P.S. I think the comment of `TreeMap.getEntryUsingComparator()` is outdated. Should we also change it?
Let's wait
-------------
PR: https://git.openjdk.org/jdk/pull/9901
More information about the core-libs-dev
mailing list