You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling GsonBuilder.registerTypeAdapter with a JsonSerializer or JsonDeserializer, it is made null-safe (see TreeTypeAdapter), i.e. the (de-)serializer will not be consulted when a null value is handled.
It appears this is currently not documented.
It should be documented in registerTypeAdapter and it should refer to TypeAdapter as alternative which does allow handling null-values.
When calling
GsonBuilder.registerTypeAdapter
with aJsonSerializer
orJsonDeserializer
, it is madenull
-safe (seeTreeTypeAdapter
), i.e. the (de-)serializer will not be consulted when anull
value is handled.It appears this is currently not documented.
It should be documented in
registerTypeAdapter
and it should refer toTypeAdapter
as alternative which does allow handlingnull
-values.Related: #1553, #980, #852
The text was updated successfully, but these errors were encountered: