Skip to content

Commit af162c0

Browse files
committed
Pretty
1 parent 736967e commit af162c0

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/local/SQLiteRemoteDocumentCache.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
import java.util.Map;
4545
import java.util.Set;
4646
import java.util.concurrent.Executor;
47-
4847
import javax.annotation.Nonnull;
4948
import javax.annotation.Nullable;
5049

@@ -219,9 +218,10 @@ private Map<DocumentKey, MutableDocument> getAll(
219218

220219
BackgroundQueue backgroundQueue = new BackgroundQueue();
221220
Map<DocumentKey, MutableDocument> results = new HashMap<>();
222-
int cnt = db.query(sql.toString())
223-
.binding(bindVars)
224-
.forEach(row -> processRowInBackground(backgroundQueue, results, row, filter));
221+
int cnt =
222+
db.query(sql.toString())
223+
.binding(bindVars)
224+
.forEach(row -> processRowInBackground(backgroundQueue, results, row, filter));
225225
if (context != null) {
226226
context.incrementDocumentReadCount(cnt);
227227
}

firebase-firestore/src/main/java/com/google/firebase/firestore/pipeline/expressions.kt

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -239,43 +239,38 @@ abstract class Expr internal constructor() {
239239
* @param value The [VectorValue] value.
240240
* @return A new [Expr] constant instance.
241241
*/
242-
@JvmStatic
243-
fun constant(value: VectorValue): Expr = Constant(encodeValue(value))
242+
@JvmStatic fun constant(value: VectorValue): Expr = Constant(encodeValue(value))
244243

245244
/**
246245
* Create a [Blob] constant from a [ByteArray].
247246
*
248247
* @param bytes The [ByteArray] to convert to a Blob.
249248
* @return A new [Expr] constant instance representing the Blob.
250249
*/
251-
@JvmStatic
252-
fun blob(bytes: ByteArray): Expr = constant(Blob.fromBytes(bytes))
250+
@JvmStatic fun blob(bytes: ByteArray): Expr = constant(Blob.fromBytes(bytes))
253251

254252
/**
255253
* Constant for a null value.
256254
*
257255
* @return A [Expr] constant instance.
258256
*/
259-
@JvmStatic
260-
fun nullValue(): Expr = NULL
257+
@JvmStatic fun nullValue(): Expr = NULL
261258

262259
/**
263260
* Create a vector constant for a [DoubleArray] value.
264261
*
265262
* @param vector The [VectorValue] value.
266263
* @return A [Expr] constant instance.
267264
*/
268-
@JvmStatic
269-
fun vector(vector: DoubleArray): Expr = Constant(Values.encodeVectorValue(vector))
265+
@JvmStatic fun vector(vector: DoubleArray): Expr = Constant(Values.encodeVectorValue(vector))
270266

271267
/**
272268
* Create a vector constant for a [VectorValue] value.
273269
*
274270
* @param vector The [VectorValue] value.
275271
* @return A [Expr] constant instance.
276272
*/
277-
@JvmStatic
278-
fun vector(vector: VectorValue): Expr = Constant(encodeValue(vector))
273+
@JvmStatic fun vector(vector: VectorValue): Expr = Constant(encodeValue(vector))
279274

280275
/**
281276
* Creates a [Field] instance representing the field at the given path.
@@ -305,8 +300,7 @@ abstract class Expr internal constructor() {
305300
* @param fieldPath The [FieldPath] to the field.
306301
* @return A new [Field] instance representing the specified path.
307302
*/
308-
@JvmStatic
309-
fun field(fieldPath: FieldPath): Field = Field(fieldPath.internalPath)
303+
@JvmStatic fun field(fieldPath: FieldPath): Field = Field(fieldPath.internalPath)
310304

311305
@JvmStatic
312306
fun generic(name: String, vararg expr: Expr): Expr = FunctionExpr(name, notImplemented, expr)

firebase-firestore/src/main/java/com/google/firebase/firestore/util/Predicate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
@FunctionalInterface
55
public interface Predicate<T> {
66
boolean test(T t);
7-
}
7+
}

0 commit comments

Comments
 (0)