<i18n dev> Integrated: 8287181: Avoid redundant HashMap.containsKey calls in InternalLocaleBuilder.setExtension

Andrey Turbanov aturbanov at openjdk.java.net
Wed May 25 07:28:00 UTC 2022


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

> No need to separately perform `HashMap.containsKey` before `HashMap.remove` call. If key is present - it will be removed anyway. If it's not present, nothing will be deleted.

This pull request has now been integrated.

Changeset: 65850431
Author:    Andrey Turbanov <aturbanov at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/65850431edd321c4cf49875f756ae28449c9f710
Stats:     2 lines in 1 file changed: 0 ins; 0 del; 2 mod

8287181: Avoid redundant HashMap.containsKey calls in InternalLocaleBuilder.setExtension

Reviewed-by: naoto, rriggs

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

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


More information about the i18n-dev mailing list