Skip to content

Commit

Permalink
race condition in FakeOtfAcceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianoviana committed Sep 18, 2024
1 parent a362795 commit a2a91e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
import uk.co.real_logic.artio.util.AsciiBuffer;
import uk.co.real_logic.artio.util.CharFormatter;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.function.Predicate;
import java.util.stream.Stream;

Expand All @@ -43,7 +43,7 @@
*/
public class FakeOtfAcceptor implements OtfMessageAcceptor
{
private final List<FixMessage> receivedMessages = new ArrayList<>();
private final List<FixMessage> receivedMessages = new CopyOnWriteArrayList<>();
private final CharFormatter formatter = new CharFormatter("Field: %s=%s");

private ValidationError error;
Expand Down

0 comments on commit a2a91e3

Please sign in to comment.