8263530: sun.awt.X11.ListHelper.removeAll() should use clear()

Reviewed-by: serb, kizune
This commit is contained in:
Aleksey Shipilev 2021-03-15 09:50:52 +00:00
parent 32c7fcc670
commit 7b4aefe9e1

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -147,7 +147,7 @@ final class ListHelper implements XScrollbarClient {
}
void removeAll() {
items.removeAll(items);
items.clear();
updateScrollbars();
}