Avoid ByteArrayOutputStream.toByteArray when converting stream to String

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 18
    • Affects Version/s: 16, 17, 18
    • Component/s: client-libs
    • None
    • b15

      Using ByteArrayOutputStream.toString to convert its content to a String is cleaner than new String(out.toByteArray()). Also it's a bit faster because of one less array copy.

            Assignee:
            Andrey Turbanov
            Reporter:
            Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: