[jboss-jira] [JBoss JIRA] (WFLY-12152) Remove redundant subString endIndex .length() calls

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


William Collishaw created WFLY-12152:
----------------------------------------

             Summary: Remove redundant subString endIndex .length() calls
                 Key: WFLY-12152
                 URL: https://issues.jboss.org/browse/WFLY-12152
             Project: WildFly
          Issue Type: Enhancement
            Reporter: William Collishaw
            Assignee: Brian Stansberry


Remove all instances of redundant .length() calls in the Sting substring calls.
Both the following samples produce the same output. 
{code:java}
str2 = str1.substring(beginIndex, str1.length());
str2 = str1.substring(beginIndex);
{code}
This minor enhancement removes unnecessary String length() calls.




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


More information about the jboss-jira mailing list