File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
firebase-firestore/src/main/java/com/google/firebase/firestore Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -525,12 +525,11 @@ private ListenerRegistration addSnapshotListenerInternal(
525
525
}
526
526
527
527
@ Override
528
- @ SuppressWarnings ("EqualsGetClass" ) // This class is effectively final.
529
528
public boolean equals (Object o ) {
530
529
if (this == o ) {
531
530
return true ;
532
531
}
533
- if (o == null || getClass () != o . getClass ( )) {
532
+ if (!( o instanceof DocumentReference )) {
534
533
return false ;
535
534
}
536
535
Original file line number Diff line number Diff line change @@ -892,12 +892,11 @@ private ListenerRegistration addSnapshotListenerInternal(
892
892
}
893
893
894
894
@ Override
895
- @ SuppressWarnings ("EqualsGetClass" ) // This class is effectively final.
896
895
public boolean equals (Object o ) {
897
896
if (this == o ) {
898
897
return true ;
899
898
}
900
- if (o == null || getClass () != o . getClass ( )) {
899
+ if (!( o instanceof Query )) {
901
900
return false ;
902
901
}
903
902
You can’t perform that action at this time.
0 commit comments