You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With newer java versions it is common to collect a collection with the built-in stream collectors (e.g. stream.toList()) which results in an immutable list.
There is no XStream converter for an unmodifiable list and the output of the xml serialisation looks weird and very different from a normal collection serialisation. There are extra attributes to the top element like class, resolves-to and serialization as well as some extra tags like <java.util.CollSer>.
Is there any way around this or a plan for a built int Converter?
Thank you
The text was updated successfully, but these errors were encountered:
XStream has a converter for an unmodifiable list, but this is none. At least it is not the same type of class returned by Collections.unmodifiableList(). It should be possible to write one.
With newer java versions it is common to collect a collection with the built-in stream collectors (e.g. stream.toList()) which results in an immutable list.
There is no XStream converter for an unmodifiable list and the output of the xml serialisation looks weird and very different from a normal collection serialisation. There are extra attributes to the top element like class, resolves-to and serialization as well as some extra tags like <java.util.CollSer>.
Is there any way around this or a plan for a built int Converter?
Thank you
The text was updated successfully, but these errors were encountered: