Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-2996

StreamUtils abuses StringBuffers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.16.0
    • 0.17.0
    • None
    • None

    Description

      Code does

      sb.append("foo" + n)

      which corresponds to

      sb.append(new StringBuffer("foo").append.toString())

      patch fixes this.

      Attachments

        1. dont_abuse_stringbuffer.patch
          2 kB
          David Brosius

        Activity

          People

            dbrosius David Brosius
            dbrosius David Brosius
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: