On Sat, 30 Apr 2022 17:00:03 GMT, Andrey Turbanov <aturba...@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 <aturba...@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

Reply via email to