Eduard BoloČ
03/01/2021, 5:22 PMNormalizedCache#merge(com.apollographql.apollo.cache.normalized.Record, com.apollographql.apollo.cache.CacheHeaders)
(https://github.com/apollographql/apollo-android/blob/bd707bbcb14741a3d2176ae93007bc42d080d878/apollo-normalized-cache-api/src/commonMain/kotlin/com/apollographql/apollo/cache/normalized/NormalizedCache.kt#L58) is not returning Set<String>
instead of Set<String?>
. Both NormalizedCache#merge(com.apollographql.apollo.cache.normalized.Record, com.apollographql.apollo.cache.CacheHeaders)
and NormalizedCache#merge(com.apollographql.apollo.cache.normalized.Record, com.apollographql.apollo.cache.CacheHeaders)
already return non-nullable String sets, I find the difference a bit annoying, and it forces me to make a cast to Set<String>
in our codebase xD Also, technically, nothing is impeding the return type to be a set of non-nullable strings. I am happy open a PR that changes the return type, if you think that it makes sense.mbonnin
03/01/2021, 5:24 PMmbonnin
03/01/2021, 5:24 PMmbonnin
03/01/2021, 5:25 PMEduard BoloČ
03/01/2021, 5:26 PMmbonnin
03/01/2021, 5:26 PMmbonnin
03/01/2021, 5:27 PMApolloStore
APIs ?mbonnin
03/01/2021, 5:27 PMApolloStore
does a bunch of additional stuff like locking and notifiying store listenersmbonnin
03/01/2021, 5:28 PMEduard BoloČ
03/01/2021, 5:32 PM