You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Loic Guibert (JIRA)" <ji...@apache.org> on 2015/11/02 06:26:27 UTC
[jira] [Resolved] (LANG-1183) Making replacePattern/removePattern
methods null safe
[ https://issues.apache.org/jira/browse/LANG-1183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Loic Guibert resolved LANG-1183.
--------------------------------
Resolution: Fixed
Fix Version/s: 3.5
> 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
> Fix For: 3.5
>
>
> 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)