Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoding nullable types from Bundle #3

Closed
tadfisher opened this issue Sep 21, 2022 · 1 comment
Closed

Decoding nullable types from Bundle #3

tadfisher opened this issue Sep 21, 2022 · 1 comment

Comments

@tadfisher
Copy link

Describe the bug

The Parcelable.decodeFromBundle() functions impose an upper bound of <T : Any> on the value type, which doesn't mirror the decodeFromByteArray and decodeFromParcel functions.

I'm optimistic that the : Any bound could simply be removed, as it's the serializer's job to encode/decode null and not-null marks.

@chRyNaN
Copy link
Owner

chRyNaN commented Sep 22, 2022

@tadfisher Thanks for bringing up this issue. It is a bit complicated because sometimes a KClass is needed in those functions which has a generic type parameter scoped to Any. However, I believe I addressed this issue in release 0.5.1 (9): https://github.com/chRyNaN/serialization-parcelable/releases/tag/0.5.1 and specifically commit: ce2ff4c

@chRyNaN chRyNaN closed this as completed Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants