googleapis / googleapis/google-api-java-client

Parse collection interfaces as serializable collections on Android

未关闭
#957 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
priority: p4 type: feature request
主要语言
Java
星标
1.5k
派生
772
平均合并
1 小时 44 分钟
30 天内合并 PR
1

描述

By default, AndroidJsonParser parses fields of collection interfaces as non-serializable classes (e.g. com.google.api.client.util.ArrayMap for java.util.Map). Since standard java collections are by large serializable, it would be convenient to ensure serializability of the parsed object graph (it is not unreasonable to assume developers would take serializability of collections for granted).

This is especially painful on Android if one wants to use objects from a parsed HttpResponse as activity extras/fragment params.

(BTW I am currently using CustomizeJsonParser to work around this issue. However, it seems cumbersome for such a common use case)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。