Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6DBB4200BA9 for ; Sun, 23 Oct 2016 19:30:55 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6C493160AFC; Sun, 23 Oct 2016 17:30:55 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B1B3E160ADF for ; Sun, 23 Oct 2016 19:30:54 +0200 (CEST) Received: (qmail 30555 invoked by uid 500); 23 Oct 2016 17:30:53 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 30546 invoked by uid 99); 23 Oct 2016 17:30:53 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Oct 2016 17:30:53 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id ACE45E08AB; Sun, 23 Oct 2016 17:30:53 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: pascalschumacher@apache.org To: commits@commons.apache.org Message-Id: <02aca2ce6f2d45b1bd41f0d0e52c05e4@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [lang] StringUtils#replacePattern: fix source code formatting Date: Sun, 23 Oct 2016 17:30:53 +0000 (UTC) archived-at: Sun, 23 Oct 2016 17:30:55 -0000 Repository: commons-lang Updated Branches: refs/heads/master 65ed41ff7 -> a945ecbbd StringUtils#replacePattern: fix source code formatting Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/a945ecbb Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/a945ecbb Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/a945ecbb Branch: refs/heads/master Commit: a945ecbbdda782b51d5c2c670345fbf4dffacab7 Parents: 65ed41f Author: pascalschumacher Authored: Sun Oct 23 19:30:38 2016 +0200 Committer: pascalschumacher Committed: Sun Oct 23 19:30:38 2016 +0200 ---------------------------------------------------------------------- src/main/java/org/apache/commons/lang3/StringUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-lang/blob/a945ecbb/src/main/java/org/apache/commons/lang3/StringUtils.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index 559444d..8405a9f 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -5143,7 +5143,7 @@ public class StringUtils { * @since 3.5 Changed {@code null} reference passed to this method is a no-op. */ public static String replacePattern(final String source, final String regex, final String replacement) { - if (source == null || regex == null|| replacement == null ) { + if (source == null || regex == null || replacement == null) { return source; } return Pattern.compile(regex, Pattern.DOTALL).matcher(source).replaceAll(replacement);