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 <pascalschumac...@gmx.net> Authored: Sun Oct 23 19:30:38 2016 +0200 Committer: pascalschumacher <pascalschumac...@gmx.net> 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);