On Wed, 8 Jun 2022 17:50:35 GMT, Andrey Turbanov <[email protected]> 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 <[email protected]>
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

Reply via email to