Skip to content

Commit 7b4aefe

Browse files
committed
8263530: sun.awt.X11.ListHelper.removeAll() should use clear()
Reviewed-by: serb, kizune
1 parent 32c7fcc commit 7b4aefe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java.desktop/unix/classes/sun/awt/X11/ListHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -147,7 +147,7 @@ void remove(int index) {
147147
}
148148

149149
void removeAll() {
150-
items.removeAll(items);
150+
items.clear();
151151
updateScrollbars();
152152
}
153153

0 commit comments

Comments
 (0)