<i18n dev> Integrated: 8356843: Avoid redundant HashMap.get to obtain old value in Toolkit.setDesktopProperty
    Andrey Turbanov 
    aturbanov at openjdk.org
       
    Thu May 15 08:00:00 UTC 2025
    
    
  
On Wed, 16 Apr 2025 14:48:04 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
> To obtain previous value of `HashMap` we can use result of `.put` call. In this case we can avoid redundant `.get` call.
This pull request has now been integrated.
Changeset: e557b695
Author:    Andrey Turbanov <aturbanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e557b6956bdf9b0d89ad69427c7b4a97a65868ea
Stats:     3 lines in 1 file changed: 0 ins; 1 del; 2 mod
8356843: Avoid redundant HashMap.get to obtain old value in Toolkit.setDesktopProperty
Reviewed-by: aivanov, serb
-------------
PR: https://git.openjdk.org/jdk/pull/24691
    
    
More information about the i18n-dev
mailing list