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

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

commit e93da886f0fb0581e85ed592e217ffa4b154bdcf
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Mon Dec 8 14:29:14 2025 -0500

    Minor typos
---
 .../org/apache/maven/shared/utils/StringUtils.java  | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 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 bf0da60..b6b22e4 100644
--- a/src/main/java/org/apache/maven/shared/utils/StringUtils.java
+++ b/src/main/java/org/apache/maven/shared/utils/StringUtils.java
@@ -33,8 +33,8 @@ import java.util.StringTokenizer;
  * <p>Originally from
  * <a href="http://jakarta.apache.org/turbine/";>Turbine</a>, the
  * GenerationJavaCore library and Velocity.
- * Later a lots methods from commons-lang StringUtils
- * got added too. Gradually smaller additions and fixes have been made
+ * Later a lot of methods from commons-lang StringUtils
+ * were added too. Gradually smaller additions and fixes have been made
  * over the time by various ASF committers.</p>
  *
  * @author <a href="mailto:[email protected]";>Jon S. Stevens</a>
@@ -198,11 +198,11 @@ public class StringUtils {
      * <p>Compares two Strings, returning <code>true</code> if they are 
equal.</p>
      *
      * <p><code>null</code>s are handled without exceptions. Two 
<code>null</code>
-     * references are considered to be equal. The comparison is case 
sensitive.</p>
+     * references are considered to be equal. The comparison is 
case-sensitive.</p>
      *
      * @param str1 the first string
      * @param str2 the second string
-     * @return <code>true</code> if the Strings are equal, case sensitive, or
+     * @return <code>true</code> if the Strings are equal, case-sensitive, or
      *         both <code>null</code>
      * @see java.lang.String#equals(Object)
      * @deprecated use {@code java.lang.Objects.equals()}
@@ -1278,7 +1278,7 @@ public class StringUtils {
      * returns <code>null</code>.</p>
      *
      * @param str the String to uppercase
-     * @return the upper cased String
+     * @return the upper-cased String
      */
     public static String upperCase(String str) {
         if (str == null) {
@@ -1957,7 +1957,7 @@ public class StringUtils {
      * Converts the first character of the given String to lowercase.
      * This method does <i>not</i> trim spaces!
      *
-     * @param data the String to get it's first character lower-cased.
+     * @param data the String to get its first character lower-cased.
      * @return data string with the first character transformed to lowercase
      * @throws NullPointerException if data is <code>null</code>
      * @throws IndexOutOfBoundsException if data is empty
@@ -2160,7 +2160,7 @@ public class StringUtils {
      * @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)} to simply {@code s}.
+     *     {@code StringUtils.unifyLineSeparators(s)} to simply {@code s}.
      */
     @Deprecated
     public static String unifyLineSeparators(@Nullable String s) {
@@ -2169,13 +2169,12 @@ 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 specified line separator.
      *
-     * @param s  a not null String
+     * @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 ls is not '\n', '\r', or "\r\n"
-     *
+     * @throws IllegalArgumentException if ls is not "\n", "\r", or "\r\n"
      */
     public static String unifyLineSeparators(@Nullable String s, @Nullable 
String ls) {
         if (s == null) {

Reply via email to