RFR: 8357226: Remove unnecessary List.indexOf from RepaintManager.removeInvalidComponent
Sergey Bylokhov
serb at openjdk.org
Mon May 19 08:26:28 UTC 2025
On Tue, 29 Apr 2025 14:09:51 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
>> src/java.desktop/share/classes/javax/swing/RepaintManager.java line 394:
>>
>>> 392: }
>>> 393: if (invalidComponents != null) {
>>> 394: invalidComponents.remove(component);
>>
>> I guess the `addInvalidComponent` above can be simplified as well?
>
> Simplified how?
the loop over invalidComponents
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24845#discussion_r2067799531
More information about the client-libs-dev
mailing list