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
Yes, that package is for private use and does not provide any API stability. So, what's your use case for QuickWriter apart from the fact that it is in a protected method?
If it is private I think it should only be used in private methods as otherwise it can drip into user-code anyways.
I'm currently using it to add a CDATA section into the emitted XML code like this:
com.thoughtworks.xstream.io.xml.PrettyPrintWriter
usescom.thoughtworks.xstream.core.util.QuickWriter
in the method:PrettyPrintWriter#writeText
but this type is not exported in the OSGi Manifest so one can't use this type in client code.I'm using the latest release from here:
https://mvnrepository.com/artifact/com.thoughtworks.xstream/xstream
it seems it is explicitly removed from export here:
xstream/xstream/pom.xml
Line 423 in d03f698
but I wonder what is the purpose of that?
Instead of experting the package, it mit be possible to have some abstraction or move QuickWriter to the com.thoughtworks.xstream.io.xml package...
The text was updated successfully, but these errors were encountered: