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

Replace redundant StringBuilder append String.subString with append CharSequence

XMLWordPrintable

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

      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

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

                Created:
                Updated:
                Resolved: