<i18n dev> RFR: 8356843: Avoid redundant HashMap.get to obtain old value in Toolkit.setDesktopProperty

Chen Liang liach at openjdk.org
Tue May 13 08:15:32 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 field is protected; need evaluation about subclass tempering.

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

PR Comment: https://git.openjdk.org/jdk/pull/24691#issuecomment-2810085858


More information about the i18n-dev mailing list