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

XStreamExcludeEmpty annotation added #109

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

XStreamExcludeEmpty annotation added #109

wants to merge 2 commits into from

Conversation

Enigo
Copy link

@Enigo Enigo commented Mar 1, 2018

Hi, the use-case for this newly created annotation is quite simple: omit the Collection, Map and String fields in case if they are empty. Like in jackson this can be done using JsonInclude.NOT_EMPTY source annotation.
I understand, that the changes are rather significant (after all, it's a new API), so I'm very open to discussion and improvements. If this change looks good, I'll write more test, I promise)

@coveralls
Copy link

coveralls commented Mar 3, 2018

Coverage Status

Coverage increased (+0.02%) to 77.974% when pulling 6c5c55f on Enigo:master into c7bcb66 on x-stream:master.

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