From d6f8aa6417146ce9e1b8d811e80e0d1cc1434b5e Mon Sep 17 00:00:00 2001 From: leewyatt Date: Fri, 13 Dec 2024 21:20:44 +0900 Subject: [PATCH] Simplify items list initialization in PagingListView. Replaced CopyOnWriteArrayList with a standard ObservableList for simplicity and maintainability. This change removes unnecessary complexity without affecting functionality. --- gemsfx/src/main/java/com/dlsc/gemsfx/PagingListView.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gemsfx/src/main/java/com/dlsc/gemsfx/PagingListView.java b/gemsfx/src/main/java/com/dlsc/gemsfx/PagingListView.java index 19ed5421..a4fcde13 100644 --- a/gemsfx/src/main/java/com/dlsc/gemsfx/PagingListView.java +++ b/gemsfx/src/main/java/com/dlsc/gemsfx/PagingListView.java @@ -32,13 +32,12 @@ import java.util.Collections; import java.util.List; import java.util.Objects; -import java.util.concurrent.CopyOnWriteArrayList; public class PagingListView extends PagingControlBase { private final LoadingService loadingService = new LoadingService(); - private final ObservableList items = FXCollections.observableArrayList(new CopyOnWriteArrayList<>()); + private final ObservableList items = FXCollections.observableArrayList(); private final ObservableList unmodifiableItems = FXCollections.unmodifiableObservableList(items);