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

Add support for directly deserializing Guava immutable collections #131

Closed

Conversation

cjkent
Copy link
Contributor

@cjkent cjkent commented Sep 7, 2016

Adds explicit support for ImmutableList, ImmutableSet, ImmutableSortedSet and ImmutableMap. This allows objects to be serialized using custom meta beans which use the deserialized value to populate the field without any copying.

Fixes #129

@jodastephen jodastephen added the RFE label Nov 7, 2016
@jodastephen
Copy link
Member

As written, the implementation changes the serialized format, by writing out "meta-type" strings. This seems undesirable, as I'd like to keep the serialized format stable if possible. However, there is no problem that I can see with the deserialization part of the change, which uses the meta property information to create an object of the correct type.

@jodastephen
Copy link
Member

See if the better-deser branch works for you.

@cjkent
Copy link
Contributor Author

cjkent commented Nov 8, 2016

Yes, it works nicely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants