mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-16 21:35:25 +00:00
8263530: sun.awt.X11.ListHelper.removeAll() should use clear()
Reviewed-by: serb, kizune
This commit is contained in:
parent
32c7fcc670
commit
7b4aefe9e1
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user