Skip to content

Commit 251690c

Browse files
committed
fix test
1 parent 1b27769 commit 251690c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

auth/src/main/java/com/firebase/ui/auth/data/model/CountryInfo.kt

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package com.firebase.ui.auth.data.model
22

33
import android.os.Parcel
44
import android.os.Parcelable
5+
import androidx.annotation.RestrictTo
56
import java.text.Collator
67
import java.util.Locale
7-
import androidx.annotation.RestrictTo
88

99
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
1010
class CountryInfo(val locale: Locale?, val countryCode: Int) : Comparable<CountryInfo>, Parcelable {
@@ -45,8 +45,7 @@ class CountryInfo(val locale: Locale?, val countryCode: Int) : Comparable<Countr
4545
}
4646

4747
override fun hashCode(): Int {
48-
if (locale == null) return 1
49-
var result = locale.hashCode()
48+
var result = locale?.hashCode() ?: 0
5049
result = 31 * result + countryCode
5150
return result
5251
}

0 commit comments

Comments
 (0)