commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno P. Kinoshita (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (LANG-1324) StringUtils and null
Date Tue, 25 Apr 2017 10:19:04 GMT

     [ 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)

Mime
View raw message