Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5B7BB172E5 for ; Mon, 2 Nov 2015 05:26:29 +0000 (UTC) Received: (qmail 12619 invoked by uid 500); 2 Nov 2015 05:26:28 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 12223 invoked by uid 500); 2 Nov 2015 05:26:28 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 11834 invoked by uid 99); 2 Nov 2015 05:26:28 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Nov 2015 05:26:28 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CCA912C1F6F for ; Mon, 2 Nov 2015 05:26:27 +0000 (UTC) Date: Mon, 2 Nov 2015 05:26:27 +0000 (UTC) From: "Loic Guibert (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (LANG-1183) Making replacePattern/removePattern methods null safe MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)