[MSHARED-954] fix JavaDoc typos (#64)
* fix JavaDoc typos
* Oxford comma
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 b0906e0..b70cdae 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 @@
/**
* 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
@@ -2406,7 +2406,7 @@
* @deprecated this method produces platform dependent code and contributes to
* non-reproducible builds. In the context of Maven, this is almost never what's needed.
* Remove calls to this method and do not replace them. That is, change
- * {@code Stringutils.unifyLineSeparators(s)} with simply {@code s}.
+ * {@code Stringutils.unifyLineSeparators(s)} to simply {@code s}.
*/
@Deprecated
public static String unifyLineSeparators( @Nullable String s )
@@ -2419,9 +2419,9 @@
* '\n', '\r' and '\r\n' with the system line separator.
*
* @param s a not null String
- * @param ls the wanted line separator ("\n" on UNIX), if null using the System line separator.
+ * @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 ls is not '\n', '\r' and '\r\n' characters.
+ * @throws IllegalArgumentException if ls is not '\n', '\r', or "\r\n"
*
*/
public static String unifyLineSeparators( @Nullable String s, @Nullable String ls )