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

Andrey Turbanov aturbanov at openjdk.org
Thu Jul 14 06:13:04 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.

Thanks for the review!

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

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



More information about the client-libs-dev mailing list