You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2018/12/20 07:49:56 UTC
[GitHub] eceejcr commented on a change in pull request #392: LANG-1410:
eliminate one unnecessary local int variable and add more tests
eceejcr commented on a change in pull request #392: LANG-1410: eliminate one unnecessary local int variable and add more tests
URL: https://github.com/apache/commons-lang/pull/392#discussion_r243179720
##########
File path: src/main/java/org/apache/commons/lang3/StringUtils.java
##########
@@ -338,15 +338,17 @@ public static boolean isAllEmpty(final CharSequence... css) {
* @since 3.0 Changed signature from isBlank(String) to isBlank(CharSequence)
*/
public static boolean isBlank(final CharSequence cs) {
- int strLen;
Review comment:
Regarding the final keyword for ‘sz’, in my view makes sense to make the code uniform and in general, the final keyword is used in the surrounding affected for variables non-mutating (even for variables inside methods). Personally, I like it because think it makes the code more readable providing information about the mutability of variable
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services