From b858b48fde5e56fb2d734d59a5d4911fef297632 Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Thu, 5 Dec 2024 16:39:10 +0800 Subject: [PATCH] remove Collections.synchronized --- forge-core/src/main/java/forge/util/collect/FCollection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forge-core/src/main/java/forge/util/collect/FCollection.java b/forge-core/src/main/java/forge/util/collect/FCollection.java index 14430057881..ad66d0516ca 100644 --- a/forge-core/src/main/java/forge/util/collect/FCollection.java +++ b/forge-core/src/main/java/forge/util/collect/FCollection.java @@ -43,12 +43,12 @@ public class FCollection implements List, /*Set,*/ FCollectionView, /** * The {@link Set} representation of this collection. */ - private final Set set = Collections.synchronizedSet(new HashSet<>()); + private final Set set = new HashSet<>(); /** * The {@link List} representation of this collection. */ - private final List list = Collections.synchronizedList(new ArrayList<>()); + private final List list = new ArrayList<>(); /** * Create an empty {@link FCollection}.