commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Loic Guibert (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LANG-1183) Making replacePattern/removePattern methods null safe
Date Mon, 02 Nov 2015 05:14:27 GMT

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

Loic Guibert updated LANG-1183:
-------------------------------
    Description: 
Following the [#LANG-1139|https://issues.apache.org/jira/browse/LANG-1139] ticket, it would
be nice to make these methods null safe in _StringUtils_ :
{code:java}
public static String replacePattern(final String source, final String regex, final String
replacement);
public static String removePattern(final String source, final String regex);
{code}

A null reference passed to these methods would be a no-op.

  was:
Following the [#LANG-1139|https://issues.apache.org/jira/browse/LANG-1139] ticket, it would
be nice to make these methods null safe :
{code:java}
public static String replacePattern(final String source, final String regex, final String
replacement);
public static String removePattern(final String source, final String regex);
{code}

A null reference passed to these methods would be a no-op.


> Making replacePattern/removePattern methods null safe
> -----------------------------------------------------
>
>                 Key: LANG-1183
>                 URL: https://issues.apache.org/jira/browse/LANG-1183
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: Loic Guibert
>            Assignee: Loic Guibert
>            Priority: Minor
>
> Following the [#LANG-1139|https://issues.apache.org/jira/browse/LANG-1139] ticket, it
would be nice to make these methods null safe in _StringUtils_ :
> {code:java}
> public static String replacePattern(final String source, final String regex, final String
replacement);
> public static String removePattern(final String source, final String regex);
> {code}
> A null reference passed to these methods would be a no-op.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message