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

Andrey Turbanov aturbanov at openjdk.org
Tue Dec 3 15:07:58 UTC 2024


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

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

Commit messages:
 - [PATCH] Avoid redundant Properties.containsKey calls in Cursor.getSystemCustomCursor

Changes: https://git.openjdk.org/jdk/pull/21824/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21824&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8345398
  Stats: 7 lines in 1 file changed: 2 ins; 3 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/21824.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21824/head:pull/21824

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


More information about the client-libs-dev mailing list