Skip to content

Commit

Permalink
Thread safe UpdateBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-andersen committed Jan 19, 2024
1 parent 04c0e07 commit 138ebb8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import java.util.Map.Entry;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.concurrent.CopyOnWriteArrayList;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

Expand All @@ -62,7 +63,7 @@ public String toString() {

final FirestoreImpl firestore;

private final List<WriteOperation> writes = new ArrayList<>();
private final List<WriteOperation> writes = new CopyOnWriteArrayList<>();

protected boolean committed;

Expand Down

0 comments on commit 138ebb8

Please sign in to comment.