Skip to content

Commit 401e3c2

Browse files
Fix hashCode
1 parent d124aa9 commit 401e3c2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/model/MutableDocument.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,7 @@ public boolean equals(Object o) {
183183

184184
@Override
185185
public int hashCode() {
186-
int result = key.hashCode();
187-
result = 31 * result + version.hashCode();
188-
result = 31 * result + type.hashCode();
189-
result = 31 * result + (hasLocalMutations ? 1 : 0);
190-
result = 31 * result + (hasCommittedMutations ? 1 : 0);
191-
result = 31 * result + value.hashCode();
192-
return result;
186+
return key.hashCode();
193187
}
194188

195189
@Override

0 commit comments

Comments
 (0)