Integrated: 8288067: Avoid redundant HashMap.containsKey call in Type1Font.expandAbbreviation

Andrey Turbanov aturbanov at openjdk.org
Thu Jul 14 06:13:05 UTC 2022


On Wed, 8 Jun 2022 17:50:35 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: 02fae607
Author:    Andrey Turbanov <aturbanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/02fae60740ad6f5d6a2891eac5571155a3ae619c
Stats:     33 lines in 1 file changed: 0 ins; 3 del; 30 mod

8288067: Avoid redundant HashMap.containsKey call in Type1Font.expandAbbreviation

Reviewed-by: attila, prr

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

PR: https://git.openjdk.org/jdk/pull/9089



More information about the client-libs-dev mailing list