commons-issues mailing list archives

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


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

For development questions, you can use the Commons Developers List listed here

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:
>             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

This message was sent by Atlassian JIRA

View raw message