From f749125764c6a245791417c1264a44dc29a9b55b Mon Sep 17 00:00:00 2001 From: SoniaZaldana Date: Tue, 24 Oct 2023 10:16:54 -0400 Subject: [PATCH] Backport 7b4aefe9e1e5bcd370de1bf510a1ed97e57a65bb --- src/java.desktop/unix/classes/sun/awt/X11/ListHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java.desktop/unix/classes/sun/awt/X11/ListHelper.java b/src/java.desktop/unix/classes/sun/awt/X11/ListHelper.java index 5ef2e3ac0bf..39c8c469e2c 100644 --- a/src/java.desktop/unix/classes/sun/awt/X11/ListHelper.java +++ b/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 @@ -147,7 +147,7 @@ void remove(int index) { } void removeAll() { - items.removeAll(items); + items.clear(); updateScrollbars(); }