Unmodifiable Lists converter
adjiandov opened this issue · 1 comments
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
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.