Skip to content

Commit

Permalink
8263530: sun.awt.X11.ListHelper.removeAll() should use clear()
Browse files Browse the repository at this point in the history
Backport-of: 7b4aefe
  • Loading branch information
Sonia Zaldana Calles authored and jerboaa committed Nov 28, 2023
1 parent 40ee106 commit be01e6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java.desktop/unix/classes/sun/awt/X11/ListHelper.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2014, 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
Expand Down Expand Up @@ -147,7 +147,7 @@ void remove(int index) {
}

void removeAll() {
items.removeAll(items);
items.clear();
updateScrollbars();
}

Expand Down

1 comment on commit be01e6e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.