Skip to content

Commit 477ba0d

Browse files
Java Format
1 parent 407b7d8 commit 477ba0d

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/core/Query.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ public boolean matchesAllDocuments() {
126126
&& startAt == null
127127
&& endAt == null
128128
&& (getExplicitOrderBy().isEmpty()
129-
|| (getExplicitOrderBy().size() == 1
130-
&& getFirstOrderByField().isKeyField()));
129+
|| (getExplicitOrderBy().size() == 1 && getFirstOrderByField().isKeyField()));
131130
}
132131

133132
/** The filters on the documents returned by the query. */

firebase-firestore/src/test/java/com/google/firebase/firestore/local/IndexFreeQueryEngineTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,20 +102,20 @@ public ImmutableSortedMap<DocumentKey, Document> getDocumentsMatchingQuery(
102102
}
103103

104104
/** Adds the provided documents to the query target mapping. */
105-
private void persistQueryMapping(Document ... docs) {
105+
private void persistQueryMapping(Document... docs) {
106106
persistence.runTransaction(
107107
"persistQueryMapping",
108108
() -> {
109-
ImmutableSortedSet<DocumentKey> remoteKeys = DocumentKey.emptyKeySet();
110-
for (Document doc: docs) {
109+
ImmutableSortedSet<DocumentKey> remoteKeys = DocumentKey.emptyKeySet();
110+
for (Document doc : docs) {
111111
remoteKeys = remoteKeys.insert(doc.getKey());
112112
}
113113
queryCache.addMatchingKeys(remoteKeys, TEST_TARGET_ID);
114114
});
115115
}
116116

117117
/** Adds the provided documents to the remote document cache. */
118-
private void addDocument(Document ... docs) {
118+
private void addDocument(Document... docs) {
119119
persistence.runTransaction(
120120
"addDocument",
121121
() -> {

firebase-firestore/src/test/java/com/google/firebase/firestore/local/LocalStoreTestCase.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
import javax.annotation.Nullable;
7777
import org.junit.After;
7878
import org.junit.Assert;
79-
import org.junit.Assume;
8079
import org.junit.Before;
8180
import org.junit.Test;
8281

0 commit comments

Comments
 (0)