File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed
src/main/java/com/google/firebase/firestore/core Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 4
4
Bundles contain pre-packaged data produced with the NodeJS Server SDK and
5
5
can be used to populate Firestore's cache without reading documents from
6
6
the backend.
7
- - [ fixed] Fix a Firestore bug where local cache inconsistencies were
8
- unnecessarily being resolved, resulting in the incompletion of ` Task ` objects
9
- returned from ` get() ` invocations (#2404 ).
7
+ - [ fixed] Fixed a Firestore bug where local cache inconsistencies were
8
+ unnecessarily being resolved, causing the ` Task ` objects returned from ` get() `
9
+ invocations to never complete (#2404 ).
10
10
11
11
# (22.0.2)
12
12
- [ changed] A write to a document that contains FieldValue transforms is no
Original file line number Diff line number Diff line change 21
21
import androidx .annotation .VisibleForTesting ;
22
22
import com .google .android .gms .tasks .Task ;
23
23
import com .google .android .gms .tasks .TaskCompletionSource ;
24
- import com .google .common .collect .ImmutableMap ;
25
- import com .google .common .collect .ImmutableSet ;
26
24
import com .google .firebase .database .collection .ImmutableSortedMap ;
27
25
import com .google .firebase .database .collection .ImmutableSortedSet ;
28
26
import com .google .firebase .firestore .FirebaseFirestoreException ;
@@ -712,15 +710,15 @@ private void pumpEnqueuedLimboResolutions() {
712
710
}
713
711
714
712
@ VisibleForTesting
715
- public ImmutableMap <DocumentKey , Integer > getActiveLimboDocumentResolutions () {
713
+ public HashMap <DocumentKey , Integer > getActiveLimboDocumentResolutions () {
716
714
// Make a defensive copy as the Map continues to be modified.
717
- return ImmutableMap . copyOf (activeLimboTargetsByKey );
715
+ return new HashMap (activeLimboTargetsByKey );
718
716
}
719
717
720
718
@ VisibleForTesting
721
- public ImmutableSet <DocumentKey > getEnqueuedLimboDocumentResolutions () {
722
- // Make a defensive copy as the LinkedHashMap continues to be modified.
723
- return ImmutableSet . copyOf (enqueuedLimboResolutions );
719
+ public LinkedHashSet <DocumentKey > getEnqueuedLimboDocumentResolutions () {
720
+ // Make a defensive copy as the LinkedHashSet continues to be modified.
721
+ return new LinkedHashSet (enqueuedLimboResolutions );
724
722
}
725
723
726
724
public void handleCredentialChange (User user ) {
You can’t perform that action at this time.
0 commit comments