Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit b002ceb

Browse files
committed
Spotless and tests
1 parent 4cf8b9d commit b002ceb

4 files changed

Lines changed: 572 additions & 6 deletions

File tree

google-cloud-firestore/src/main/java/com/google/cloud/firestore/pipeline/expressions/Expression.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3419,7 +3419,8 @@ public static Expression geoDistance(String fieldName, GeoPoint location) {
34193419
*/
34203420
@BetaApi
34213421
public static Expression geoDistance(Field field, GeoPoint location) {
3422-
return new FunctionExpression("geo_distance", java.util.Arrays.asList(field, constant(location)));
3422+
return new FunctionExpression(
3423+
"geo_distance", java.util.Arrays.asList(field, constant(location)));
34233424
}
34243425

34253426
/**

google-cloud-firestore/src/main/java/com/google/cloud/firestore/pipeline/expressions/FunctionExpression.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818

1919
import com.google.api.core.BetaApi;
2020
import com.google.api.core.InternalApi;
21-
import com.google.common.base.Objects;
2221
import com.google.firestore.v1.Value;
23-
import java.util.Collections;
2422
import java.util.List;
2523
import java.util.stream.Collectors;
2624

google-cloud-firestore/src/main/java/com/google/cloud/firestore/pipeline/stages/Search.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ private QueryEnhancement(String protoString) {
5353
}
5454

5555
/**
56-
* Search will fall back to the un-enhanced, user provided query, if the query enhancement fails.
56+
* Search will fall back to the un-enhanced, user provided query, if the query enhancement
57+
* fails.
5758
*/
5859
public static final QueryEnhancement PREFERRED = new QueryEnhancement("preferred");
5960

@@ -131,8 +132,7 @@ public Search withSort(Ordering order, Ordering... additionalOrderings) {
131132
allOrderings[0] = order;
132133
System.arraycopy(additionalOrderings, 0, allOrderings, 1, additionalOrderings.length);
133134
return new Search(
134-
options.with(
135-
"sort", Lists.transform(Arrays.asList(allOrderings), Ordering::toProto)));
135+
options.with("sort", Lists.transform(Arrays.asList(allOrderings), Ordering::toProto)));
136136
}
137137

138138
/** Specify the maximum number of documents to return from the Search stage. */

0 commit comments

Comments
 (0)