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