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

Sergey Bylokhov serb 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.

looks fine

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

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


More information about the i18n-dev mailing list