use StringBuilder instead of StringBuffer

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 6
    • Affects Version/s: 5.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: