RFR: 8357687: Remove unnecessary Map.containsKey from GraphicsEnvironment implementations
Sergey Bylokhov
serb at openjdk.org
Sat May 24 16:42:29 UTC 2025
On Mon, 5 May 2025 21:00:37 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
>> src/java.desktop/unix/classes/sun/awt/X11GraphicsEnvironment.java line 236:
>>
>>> 234: for (int id = 0; id < numScreens; ++id) {
>>> 235: X11GraphicsDevice d = old.remove(id);
>>> 236: devices.put(id, d != null ? d : new X11GraphicsDevice(id));
>>
>> same can be done in CGraphicsEnvironment.java
>
> Do you suggest to update it in this PR? Or file a separate issue?
same PR, code in x11 was copied from macOS
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24907#discussion_r2085733953
More information about the client-libs-dev
mailing list