Skip to content

Commit

Permalink
fix: change the AssertSubscriber items list back to copyOnWrite
Browse files Browse the repository at this point in the history
  • Loading branch information
ozangunalp committed Sep 27, 2023
1 parent 99913a8 commit 5442f2c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import static java.time.Duration.ofSeconds;

import java.time.Duration;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.concurrent.*;
Expand Down Expand Up @@ -67,7 +65,7 @@ public class AssertSubscriber<T> implements MultiSubscriber<T>, ContextSupport {
/**
* The received items.
*/
private final List<T> items = Collections.synchronizedList(new ArrayList<>());
private final List<T> items = new CopyOnWriteArrayList<>();

/**
* The received failure.
Expand Down

0 comments on commit 5442f2c

Please sign in to comment.