You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bruno P. Kinoshita (JIRA)" <ji...@apache.org> on 2017/04/25 10:19:04 UTC

[jira] [Closed] (LANG-1324) StringUtils and null

     [ https://issues.apache.org/jira/browse/LANG-1324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bruno P. Kinoshita closed LANG-1324.
------------------------------------
    Resolution: Fixed

For development questions, you can use the Commons Developers List listed here https://commons.apache.org/mail-lists.html

Append [lang] to your e-mail subject, if it is related to lang, [io] for io, and so it goes.

> StringUtils and null
> --------------------
>
>                 Key: LANG-1324
>                 URL: https://issues.apache.org/jira/browse/LANG-1324
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 3.5
>            Reporter: abhijith nagarajan
>            Priority: Trivial
>              Labels: question
>
> This is more of a question which could lead to a minor improvement. I would like to know if there was a specific reason to return "null" from method stripChars, substringsBetween when input is null. 
> I was always under the impression that Util classes would gracefully handle null (this is great from commons-lang) and would not return null unless it is very clear from the method's objective (like stripToNull).
> I have the required code change which is small but impact of this change would be high as we do not know what could break as this library usage is pretty common in all the java projects.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)