[jboss-jira] [JBoss JIRA] (WFLY-12153) Replace redundant StringBuilder append String.subString with append CharSequence

William Collishaw (Jira) issues at jboss.org
Sat Jun 1 11:21:00 EDT 2019


William Collishaw created WFLY-12153:
----------------------------------------

             Summary: Replace redundant StringBuilder append String.subString with append CharSequence
                 Key: WFLY-12153
                 URL: https://issues.jboss.org/browse/WFLY-12153
             Project: WildFly
          Issue Type: Enhancement
            Reporter: William Collishaw
            Assignee: Brian Stansberry


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

{code:java}
buffer.append(str.substring(startIndex, endIndex));
buffer.append(str, startIndex, endIndex);
{code}


This minor enhancement removes an intermediate String construction during append





--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list