Skip to content

Commit 79f02eb

Browse files
Fixing QuerySnapsht.size()
1 parent f924758 commit 79f02eb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

google-cloud-firestore/src/main/java/com/google/cloud/firestore/FieldValue.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public boolean equals(Object obj) {
5252
return this == obj;
5353
}
5454

55+
@Override
5556
public int hashCode() {
5657
return super.hashCode();
5758
}

google-cloud-firestore/src/main/java/com/google/cloud/firestore/QuerySnapshot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public List<DocumentChange> getDocumentChanges() {
123123

124124
@Override
125125
public int size() {
126-
return documents.size();
126+
return documentSet.size();
127127
}
128128

129129
@Override

0 commit comments

Comments
 (0)