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

Replace uses of StringBuffer with StringBuilder in java.xml

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 18
    • Component/s: xml
    • Labels:
      None
    • Resolved In Build:
      b18

      Description

      StringBuffer is a legacy synchronized class. There are more modern alternatives which perform better:
      1. Plain String concatenation should be preferred
      2. StringBuilder is a direct replacement to StringBuffer which generally have better performance

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: