RFR: 8288067: Avoid redundant HashMap.containsKey call in Type1Font.expandAbbreviation
Phil Race
prr at openjdk.org
Wed Jul 13 22:42:57 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.
Marked as reviewed by prr (Reviewer).
-------------
PR: https://git.openjdk.org/jdk/pull/9089
More information about the client-libs-dev
mailing list