Hi! I'm trying to figure out whether the various g...
# android
d
Hi! I'm trying to figure out whether the various getX functions in SharedPreferences might return null (and if the defValue can be null)? It seems like only getString and getStringSet are annotated with
@Nullable
for that... 🤔
d
The int primative is non-null and at least hold a value of 0. The same goes for boolean, which is false.
👍🏼 1
d
Thanks!
I haven't written Java in ages 😇