You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jörg Gottschling (JIRA)" <ji...@apache.org> on 2008/02/06 09:23:08 UTC
[jira] Created: (LANG-408) StringUtils.isLength(String string, int
length) : boolean
StringUtils.isLength(String string, int length) : boolean
---------------------------------------------------------
Key: LANG-408
URL: https://issues.apache.org/jira/browse/LANG-408
Project: Commons Lang
Issue Type: Improvement
Affects Versions: 2.3
Reporter: Jörg Gottschling
Priority: Minor
Just a null safe way to check the length of an String.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (LANG-408) StringUtils.isLength(String string, int
length) : boolean
Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LANG-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Yandell closed LANG-408.
------------------------------
Resolution: Won't Fix
StringUtils.length(String) was just added; so I'm going to close this as a WONTFIX as it sounds like you prefer that too :)
> StringUtils.isLength(String string, int length) : boolean
> ---------------------------------------------------------
>
> Key: LANG-408
> URL: https://issues.apache.org/jira/browse/LANG-408
> Project: Commons Lang
> Issue Type: Improvement
> Affects Versions: 2.3
> Reporter: Jörg Gottschling
> Priority: Minor
>
> Just a null safe way to check the length of an String.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (LANG-408) StringUtils.isLength(String string,
int length) : boolean
Posted by "Jörg Gottschling (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LANG-408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568554#action_12568554 ]
Jörg Gottschling commented on LANG-408:
---------------------------------------
Yes, that's OK.
> StringUtils.isLength(String string, int length) : boolean
> ---------------------------------------------------------
>
> Key: LANG-408
> URL: https://issues.apache.org/jira/browse/LANG-408
> Project: Commons Lang
> Issue Type: Improvement
> Affects Versions: 2.3
> Reporter: Jörg Gottschling
> Priority: Minor
>
> Just a null safe way to check the length of an String.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (LANG-408) StringUtils.isLength(String string,
int length) : boolean
Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LANG-408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567970#action_12567970 ]
Henri Yandell commented on LANG-408:
------------------------------------
[That length method is a recent add btw]
> StringUtils.isLength(String string, int length) : boolean
> ---------------------------------------------------------
>
> Key: LANG-408
> URL: https://issues.apache.org/jira/browse/LANG-408
> Project: Commons Lang
> Issue Type: Improvement
> Affects Versions: 2.3
> Reporter: Jörg Gottschling
> Priority: Minor
>
> Just a null safe way to check the length of an String.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (LANG-408) StringUtils.isLength(String string,
int length) : boolean
Posted by "Jörg Gottschling (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LANG-408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568235#action_12568235 ]
Jörg Gottschling commented on LANG-408:
---------------------------------------
Sorry I do not understand you first comment. What do you think is better? And which method was added? I think your one is more flexible.
> StringUtils.isLength(String string, int length) : boolean
> ---------------------------------------------------------
>
> Key: LANG-408
> URL: https://issues.apache.org/jira/browse/LANG-408
> Project: Commons Lang
> Issue Type: Improvement
> Affects Versions: 2.3
> Reporter: Jörg Gottschling
> Priority: Minor
>
> Just a null safe way to check the length of an String.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (LANG-408) StringUtils.isLength(String string,
int length) : boolean
Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LANG-408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567969#action_12567969 ]
Henri Yandell commented on LANG-408:
------------------------------------
I think it would be worse than:
if( StringUtils.length("fred") == 5 ) {
}
ie) a method should have more in than just the addition of a keyword.
> StringUtils.isLength(String string, int length) : boolean
> ---------------------------------------------------------
>
> Key: LANG-408
> URL: https://issues.apache.org/jira/browse/LANG-408
> Project: Commons Lang
> Issue Type: Improvement
> Affects Versions: 2.3
> Reporter: Jörg Gottschling
> Priority: Minor
>
> Just a null safe way to check the length of an String.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.