XStream
  1. XStream
  2. XSTR-750

PrettyPrintWriter: no way to specify newLine in a non-deprecated constructor

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.4.5
    • Fix Version/s: 1.4.7
    • Component/s: IO
    • Labels:
      None

      Description

      There is some issues in JIRA saying XStream should use platform line ending. The resolution is always set to won't fix and commenter says to use the newLine parameter in the constructor of PrettyPrintWriter.

      However, it seems that it is not possible to pass this parameter using a non-deprecated constructors. Any non-deprecated constructor does not accept the newLine parameter.

      If passing newLine is really deprecated and the only way is to override PrettyPrintWriter#getNewLine method, then I think there should be a comment in the constructor (or the class) telling this information.

      Regards,
      Matt

        Issue Links

          People

          • Assignee:
            Jörg Schaible
            Reporter:
            Matthieu Vachon
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: