Skip to content

Commit

Permalink
fix: make StreamableQuery#internalStream package-private to avoid doc…
Browse files Browse the repository at this point in the history
…umentation and prevent clirr errors (#1896)
  • Loading branch information
MarkDuckworth authored Oct 31, 2024
1 parent 96f88eb commit 593acc3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions google-cloud-firestore/clirr-ignored-differences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -314,4 +314,10 @@
<method>com.google.cloud.firestore.Query getQuery()</method>
</difference>

<difference>
<className>com/google/cloud/firestore/StreamableQuery</className>
<differenceType>7009</differenceType>
<method>void internalStream(*)</method>
</difference>

</differences>
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static com.google.common.collect.Lists.reverse;

import com.google.api.core.ApiFuture;
import com.google.api.core.InternalApi;
import com.google.api.core.SettableApiFuture;
import com.google.api.gax.rpc.ApiStreamObserver;
import com.google.api.gax.rpc.ResponseObserver;
Expand Down Expand Up @@ -49,6 +50,7 @@
* `isRetryableWithCursor`. Retrying with a cursor means that the StreamableQuery can be resumed
* where it failed by first calling `startAfter(lastDocumentReceived)`.
*/
@InternalApi
public abstract class StreamableQuery<SnapshotType> {
final Query.QueryOptions options;
final FirestoreRpcContext<?> rpcContext;
Expand Down Expand Up @@ -237,7 +239,7 @@ public void onCompleted() {
}
}

protected void internalStream(
void internalStream(
final ApiStreamObserver<RunQueryResponse> runQueryResponseObserver,
final long startTimeNanos,
@Nullable final ByteString transactionId,
Expand Down

0 comments on commit 593acc3

Please sign in to comment.