googleapis / googleapis/google-api-java-client

Parse collection interfaces as serializable collections on Android

Offen
#957 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
priority: p4 type: feature request
Vorherrschende Sprache
Java
Sterne
1.5k
Forks
772
Ø Merge
1 Std. 44 Min.
Gemergte PRs (30 T.)
1

Beschreibung

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)

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.