Skip to content

More frugal enumset #180

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

Merged
merged 3 commits into from
Sep 13, 2023
Merged

More frugal enumset #180

merged 3 commits into from
Sep 13, 2023

Conversation

laurgarn
Copy link
Contributor

In stead of
{"@type":"java.util.RegularEnumSet","@Items":[{"@type":"com.cedarsoftware.util.io.TestEmptyEnumSetOnJDK17$TestEnum","name":"V1"},{"@type":"com.cedarsoftware.util.io.TestEmptyEnumSetOnJDK17$TestEnum","name":"V2"}]}
serialize to
{"@enum":"com.cedarsoftware.util.io.TestEmptyEnumSetOnJDK17$TestEnum","@Items":["V1","V2"]}
not repeating the enum class nor the enumset implementation that is a consequence of the number of entries of the enum.

@jdereg jdereg merged commit 79c6c65 into jdereg:master Sep 13, 2023
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 this pull request may close these issues.

2 participants