]
William Collishaw updated WFLY-12152:
-------------------------------------
Priority: Optional (was: Trivial)
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
Priority: Optional
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.