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)