-
Enhancement
-
Resolution: Done
-
Optional
-
None
-
None
-
None
Remove all instances of redundant .length() calls in the String substring calls.
Both the following samples produce the same output:
str2 = str1.substring(beginIndex, str1.length()); str2 = str1.substring(beginIndex);
This minor enhancement removes unnecessary String length() calls.