On Fri, 12 Mar 2021 15:44:39 GMT, Aleksey Shipilev <[email protected]> wrote:
> SonarCloud reports:
> Remove or correct this "removeAll" call.
>
> void removeAll() {
> items.removeAll(items); // <--- here
> updateScrollbars();
> }
>
> Calling `removeAll()` with the same collection risks concurrent modification
> exceptions. `clear()` would be correct and more efficient.
Marked as reviewed by kizune (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/2974
