On Wed, 16 Apr 2025 15:07:36 GMT, Andrey Turbanov <aturba...@openjdk.org> wrote:

> Instead of separate `.get`+`.remove` calls we can call `.remove` and then 
> compare result with `null`

This pull request has now been integrated.

Changeset: a0cdf36b
Author:    Andrey Turbanov <aturba...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/a0cdf36bdfeca9cd8b669859700d63d5ee627458
Stats:     3 lines in 1 file changed: 0 ins; 1 del; 2 mod

8357224: Avoid redundant WeakHashMap.get in Toolkit.removeAWTEventListener

Reviewed-by: liach, aivanov, serb

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

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

Reply via email to