xstream
xstream copied to clipboard
XStreamExcludeEmpty annotation added
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)