Skip to content

Commit b428adc

Browse files
committed
SyncEngine.java: Add missing import of java.util.Iterator and change some return types to more general types (e.g. LinkedHashSet -> List).
1 parent e32d407 commit b428adc

File tree

1 file changed

+5
-4
lines changed
  • firebase-firestore/src/main/java/com/google/firebase/firestore/core

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
import java.util.ArrayList;
5959
import java.util.Collections;
6060
import java.util.HashMap;
61+
import java.util.Iterator;
6162
import java.util.LinkedHashSet;
6263
import java.util.List;
6364
import java.util.Map;
@@ -710,15 +711,15 @@ private void pumpEnqueuedLimboResolutions() {
710711
}
711712

712713
@VisibleForTesting
713-
public HashMap<DocumentKey, Integer> getActiveLimboDocumentResolutions() {
714+
public Map<DocumentKey, Integer> getActiveLimboDocumentResolutions() {
714715
// Make a defensive copy as the Map continues to be modified.
715-
return new HashMap(activeLimboTargetsByKey);
716+
return new HashMap<>(activeLimboTargetsByKey);
716717
}
717718

718719
@VisibleForTesting
719-
public LinkedHashSet<DocumentKey> getEnqueuedLimboDocumentResolutions() {
720+
public List<DocumentKey> getEnqueuedLimboDocumentResolutions() {
720721
// Make a defensive copy as the LinkedHashSet continues to be modified.
721-
return new LinkedHashSet(enqueuedLimboResolutions);
722+
return new ArrayList<>(enqueuedLimboResolutions);
722723
}
723724

724725
public void handleCredentialChange(User user) {

0 commit comments

Comments
 (0)