Tech
Gson silent bug that Never Said a Word(Interview Prep)
Here's a bug that looks impossible until you understand Gson.
You have this data class in your Pokedex app:
data class PokemonStat (
@SerializedName ( "base_stat" ) val baseStat : Int ,
val stat : StatInfo
)
A teammate cleans up the code and deletes what looks like a redundant line:
data class PokemonStat (
val baseStat : Int , // @SerializedName removed
val stat : StatInfo
)
It comp...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to