RFR: 8345398: Avoid redundant Properties.containsKey call in Cursor.getSystemCustomCursor [v2]
Andrey Turbanov
aturbanov at openjdk.org
Thu Dec 5 09:10:51 UTC 2024
On Wed, 4 Dec 2024 14:51:14 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.
>
> Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:
>
> inline 'key'
> remove 'final' from 'localized' too
Thank you for review!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21824#issuecomment-2519687285
More information about the client-libs-dev
mailing list