On Wed, 16 Apr 2025 14:48:04 GMT, Andrey Turbanov <aturba...@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 <aturba...@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

Reply via email to