From e88d48a7dd6b76d326a7841872e4d050861b809b Mon Sep 17 00:00:00 2001 From: Tom Andersen Date: Sat, 10 Feb 2024 14:31:52 -0500 Subject: [PATCH] Clirr --- google-cloud-firestore/clirr-ignored-differences.xml | 6 ++++++ .../main/java/com/google/cloud/firestore/Transaction.java | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/google-cloud-firestore/clirr-ignored-differences.xml b/google-cloud-firestore/clirr-ignored-differences.xml index 5c9b4d6a0..7a4c83689 100644 --- a/google-cloud-firestore/clirr-ignored-differences.xml +++ b/google-cloud-firestore/clirr-ignored-differences.xml @@ -17,6 +17,12 @@ + + + 3005 + com/google/cloud/firestore/Transaction + + 7012 diff --git a/google-cloud-firestore/src/main/java/com/google/cloud/firestore/Transaction.java b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/Transaction.java index be242f8fb..22fa4e065 100644 --- a/google-cloud-firestore/src/main/java/com/google/cloud/firestore/Transaction.java +++ b/google-cloud-firestore/src/main/java/com/google/cloud/firestore/Transaction.java @@ -17,6 +17,7 @@ package com.google.cloud.firestore; import com.google.api.core.ApiFuture; +import com.google.api.core.InternalExtensionOnly; import java.util.List; import java.util.logging.Logger; import javax.annotation.Nonnull; @@ -28,13 +29,14 @@ * * @see Firestore#runTransaction(Function) */ +@InternalExtensionOnly public abstract class Transaction extends UpdateBuilder { private static final Logger LOGGER = Logger.getLogger(Transaction.class.getName()); private static final String READ_BEFORE_WRITE_ERROR_MSG = "Firestore transactions require all reads to be executed before all writes"; - Transaction(FirestoreImpl firestore) { + protected Transaction(FirestoreImpl firestore) { super(firestore); }