RFR: 8357687: Remove unnecessary Map.containsKey from GraphicsEnvironment implementations

Sergey Bylokhov serb at openjdk.org
Wed May 28 09:01:55 UTC 2025


On Sun, 27 Apr 2025 21:04:34 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> `devices` contains only non-null values. It means instead of separate `containsKey` call we can just call `HashMap.get` and then compare result with `null`.

Marked as reviewed by serb (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/24907#pullrequestreview-2874193509


More information about the client-libs-dev mailing list