RFR: 8285947: Avoid redundant HashMap.containsKey calls in ZoneName

Andrey Turbanov aturbanov at openjdk.java.net
Fri Apr 29 20:48:44 UTC 2022


On Fri, 29 Apr 2022 20:36:59 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>aliases.getOrDefault will throw NPE on null

No, It will not. `aliases` is a HashMap. And HashMap supports null values and keys.

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

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


More information about the core-libs-dev mailing list