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

Replace redundant StringBuilder append String.subString with append CharSequence

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Optional
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 17.0.0.Final
    • Component/s: None
    • Labels:
      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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                brian.stansberry Brian Stansberry
                Reporter:
                williamcollishaw William Collishaw
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: