commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1410) StringsUtil.isBlank check null first
Date Fri, 07 Sep 2018 12:20:00 GMT

    [ https://issues.apache.org/jira/browse/LANG-1410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16607042#comment-16607042
] 

Sebb commented on LANG-1410:
----------------------------

AIUI the memory for a local variable is allocated on the stack and it will be reserved regardless
of whether it has yet been used.
Besides, it's really not worth worrying about a single integer.

> StringsUtil.isBlank check null first
> ------------------------------------
>
>                 Key: LANG-1410
>                 URL: https://issues.apache.org/jira/browse/LANG-1410
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: Yifan Guo
>            Priority: Minor
>
> StringsUtil.isBlank should check null for cs first instead of declaring int strLen first.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message