Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-12153

Replace redundant StringBuilder append String.subString with append CharSequence

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Optional
    • 17.0.0.Final
    • None
    • None
    • None

    Description

      Replace all instances of redundant StringBuilder append String.subString with append CharSequence
      Both the following samples produce the same output:

      buffer.append(str.substring(startIndex, endIndex));
      buffer.append(str, startIndex, endIndex);
      

      This minor enhancement removes an intermediate String construction during append

      Attachments

        Activity

          People

            bstansbe@redhat.com Brian Stansberry
            williamcollishaw William Collishaw (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: