<i18n dev> RFR: 8357224: Avoid redundant WeakHashMap.get in Toolkit.removeAWTEventListener
    Andrey Turbanov 
    aturbanov at openjdk.org
       
    Mon May 19 08:14:29 UTC 2025
    
    
  
Instead of separate `.get`+`.remove` calls we can call `.remove` and then compare result with `null`
-------------
Commit messages:
 - [PATCH] Avoid redundant WeakHashMap.get in Toolkit.removeAWTEventListener
Changes: https://git.openjdk.org/jdk/pull/24692/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24692&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8357224
  Stats: 4 lines in 1 file changed: 0 ins; 1 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/24692.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24692/head:pull/24692
PR: https://git.openjdk.org/jdk/pull/24692
    
    
More information about the i18n-dev
mailing list