<i18n dev> RFR: 8357224: Avoid redundant WeakHashMap.get in Toolkit.removeAWTEventListener
Andrey Turbanov
aturbanov at openjdk.org
Wed May 21 08:43:03 UTC 2025
On Wed, 16 Apr 2025 15:07:36 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
> Instead of separate `.get`+`.remove` calls we can call `.remove` and then compare result with `null`
Thank you for review.
Feel free to create a separate cleanup ticket to clarify code.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24692#issuecomment-2897100252
More information about the i18n-dev
mailing list