<i18n dev> Integrated: 8287053: Avoid redundant HashMap.containsKey calls in ZoneInfoFile.getZoneInfo0
Andrey Turbanov
aturbanov at openjdk.java.net
Mon May 23 08:32:02 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.
This pull request has now been integrated.
Changeset: 01916e19
Author: Andrey Turbanov <aturbanov at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/01916e192039bebbb93f5a09eb3ca9ec31ee707f
Stats: 5 lines in 1 file changed: 0 ins; 3 del; 2 mod
8287053: Avoid redundant HashMap.containsKey calls in ZoneInfoFile.getZoneInfo0
Reviewed-by: redestad, naoto, rriggs
-------------
PR: https://git.openjdk.java.net/jdk/pull/8487
More information about the i18n-dev
mailing list