Skip to content

Commit 024e9fe

Browse files
committed
Review feedback
1 parent 34e8b0e commit 024e9fe

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/DocumentReference.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,12 +525,11 @@ private ListenerRegistration addSnapshotListenerInternal(
525525
}
526526

527527
@Override
528-
@SuppressWarnings("EqualsGetClass") // This class is effectively final.
529528
public boolean equals(Object o) {
530529
if (this == o) {
531530
return true;
532531
}
533-
if (o == null || getClass() != o.getClass()) {
532+
if (!(o instanceof DocumentReference)) {
534533
return false;
535534
}
536535

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,12 +892,11 @@ private ListenerRegistration addSnapshotListenerInternal(
892892
}
893893

894894
@Override
895-
@SuppressWarnings("EqualsGetClass") // This class is effectively final.
896895
public boolean equals(Object o) {
897896
if (this == o) {
898897
return true;
899898
}
900-
if (o == null || getClass() != o.getClass()) {
899+
if (!(o instanceof Query)) {
901900
return false;
902901
}
903902

0 commit comments

Comments
 (0)