You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2020/08/24 12:21:05 UTC

[maven-shared-utils] branch MSHARED-954 updated: Oxford comma

This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch MSHARED-954
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git


The following commit(s) were added to refs/heads/MSHARED-954 by this push:
     new 9d956f7  Oxford comma
9d956f7 is described below

commit 9d956f728ee5398a8c9514cb00c92e6cdec5b604
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Mon Aug 24 08:20:51 2020 -0400

    Oxford comma
---
 src/main/java/org/apache/maven/shared/utils/StringUtils.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/shared/utils/StringUtils.java b/src/main/java/org/apache/maven/shared/utils/StringUtils.java
index 3b33d5a..d659ea4 100644
--- a/src/main/java/org/apache/maven/shared/utils/StringUtils.java
+++ b/src/main/java/org/apache/maven/shared/utils/StringUtils.java
@@ -2398,7 +2398,7 @@ public class StringUtils
 
     /**
      * Parses the given String and replaces all occurrences of
-     * '\n', '\r' and '\r\n' with the system line separator.
+     * '\n', '\r', and "\r\n" with the system line separator.
      *
      * @param s a not null String
      * @return a String that contains only System line separators
@@ -2421,7 +2421,7 @@ public class StringUtils
      * @param s  a not null String
      * @param ls the wanted line separator ("\n" on UNIX), if null using the System line separator
      * @return a String that contains only System line separators
-     * @throws IllegalArgumentException if s is not '\n', '\r' or "\r\n"
+     * @throws IllegalArgumentException if s is not '\n', '\r', or "\r\n"
      * 
      */
     public static String unifyLineSeparators( @Nullable String s, @Nullable String ls )