Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6302857

use StringBuilder instead of StringBuffer

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 5.0
    • core-libs
    • None

      The implementations of java.io.ObjectInputStream and ObjectStreamClass use instances of java.lang.StringBuffer in a few places in which the instances are not exposed to multiple threads, so the the synchronization of StringBuffer is extraneous. To avoid unnecessary synchronization overhead, for what that's worth, those uses of StringBuffer should be changed to java.lang.StringBuilder instead.

            aozerov Andrey Ozerov
            peterjones Peter Jones (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: