Integrated: 8345398: Avoid redundant Properties.containsKey call in Cursor.getSystemCustomCursor

Andrey Turbanov aturbanov at openjdk.org
Thu Dec 5 09:10:52 UTC 2024


On Fri, 1 Nov 2024 13:08:54 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> `Properties` doesn't allow `null` values.
> We can replace containsKey+getProperty with getProperty+null check.
> It's clearer and a bit faster.

This pull request has now been integrated.

Changeset: 3b7571d3
Author:    Andrey Turbanov <aturbanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/3b7571d37812472a2152f9c8cbfd2a4abdb35016
Stats:     10 lines in 1 file changed: 3 ins; 4 del; 3 mod

8345398: Avoid redundant Properties.containsKey call in Cursor.getSystemCustomCursor

Reviewed-by: aivanov, prr

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

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


More information about the client-libs-dev mailing list