Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8263530: sun.awt.X11.ListHelper.removeAll() should use clear()
Reviewed-by: serb, kizune
  • Loading branch information
shipilev committed Mar 15, 2021
1 parent 32c7fcc commit 7b4aefe9e1e5bcd370de1bf510a1ed97e57a65bb
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/java.desktop/unix/classes/sun/awt/X11/ListHelper.java
@@ -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 @@ void remove(int index) {
}

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

0 comments on commit 7b4aefe

Please sign in to comment.