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

Replace String concatenation in a loop in SimpleAttributeSet.toString with StringBuilder

    XMLWordPrintable

Details

    Description

      SimpleAttributeSet.toString loops over all attributes and adds them to a string. Each iteration results in a new String object being created.

      IDE raises a warning and suggests replacing concatenation with StringBuilder.

      Attachments

        Issue Links

          Activity

            People

              rkannathpari Renjith Kannath Pariyangad
              aivanov Alexey Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: