<i18n dev> RFR: 8287053: Avoid redundant HashMap.containsKey calls in ZoneInfoFile.getZoneInfo0

Claes Redestad redestad at openjdk.java.net
Fri May 20 08:19:03 UTC 2022


On Sat, 30 Apr 2022 17:00:03 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> Instead of pair `HashMap.containsKey`/`HashMap.get` method calls, we can use single call `HashMap.getOrDefault`.
> It's faster and clearer.

Marked as reviewed by redestad (Reviewer).

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

PR: https://git.openjdk.java.net/jdk/pull/8487


More information about the i18n-dev mailing list