From 9cde3f97aa0a37161dea257fbf5707ff8752d9e6 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Fri, 29 May 2020 10:50:41 -0400 Subject: [PATCH 1/2] correct API docs for clean and trim --- .../org/apache/maven/shared/utils/StringUtils.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 2a14de31..ba9d730d 100644 --- a/src/main/java/org/apache/maven/shared/utils/StringUtils.java +++ b/src/main/java/org/apache/maven/shared/utils/StringUtils.java @@ -69,7 +69,7 @@ public StringUtils() //-------------------------------------------------------------------------- /** - *

Removes control characters, including whitespace, from both + *

Removes C0 control characters, including ASCII whitespace, from both * ends of this String, handling null by returning * an empty String.

* @@ -83,7 +83,7 @@ public StringUtils() } /** - *

Removes control characters, including whitespace, from both + *

Removes C0 control characters, including ASCII whitespace, from both * ends of this String, handling null by returning * null.

* @@ -530,10 +530,10 @@ public static String mid( String str, int pos, int len ) *

Splits the provided text into a array, based on a given separator.

*

*

The separator is not included in the returned String array. The - * maximum number of splits to perfom can be controlled. A null - * separator will cause parsing to be on whitespace.

+ * maximum number of splits to perform can be controlled. A null + * separator causes splitting on whitespace.

*

- *

This is useful for quickly splitting a String directly into + *

This is useful for quickly splitting a String into * an array of tokens, instead of an enumeration of tokens (as * StringTokenizer does).

* From 03050fa4451cb240540919ec97825bb688caff66 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Fri, 29 May 2020 10:56:08 -0400 Subject: [PATCH 2/2] spelling --- .../org/apache/maven/shared/utils/StringUtils.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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 ba9d730d..224c4706 100644 --- a/src/main/java/org/apache/maven/shared/utils/StringUtils.java +++ b/src/main/java/org/apache/maven/shared/utils/StringUtils.java @@ -1688,7 +1688,7 @@ public static String getNestedString( String str, @Nonnull String open, @Nonnull * * @param str the String to check * @param sub the substring to count - * @return the number of occurances, 0 if the String is null + * @return the number of occurrences, 0 if the String is null * @throws NullPointerException if sub is null */ public static int countMatches( @Nullable String str, @Nonnull String sub ) @@ -1715,7 +1715,7 @@ public static int countMatches( @Nullable String str, @Nonnull String sub ) //-------------------------------------------------------------------------- /** - *

Checks if the String contains only unicode letters.

+ *

Checks if the String contains only Unicode letters.

*

*

null will return false. * An empty String will return true.

@@ -1767,7 +1767,7 @@ public static boolean isWhitespace( String str ) } /** - *

Checks if the String contains only unicode letters and + *

Checks if the String contains only Unicode letters and * space (' ').

*

*

null will return false. An @@ -1795,7 +1795,7 @@ public static boolean isAlphaSpace( String str ) } /** - *

Checks if the String contains only unicode letters or digits.

+ *

Checks if the String contains only Unicode letters or digits.

*

*

null will return false. An empty * String will return true.

@@ -1822,7 +1822,7 @@ public static boolean isAlphanumeric( String str ) } /** - *

Checks if the String contains only unicode letters, digits + *

Checks if the String contains only Unicode letters, digits * or space (' ').

*

*

null will return false. An empty @@ -1850,7 +1850,7 @@ public static boolean isAlphanumericSpace( String str ) } /** - *

Checks if the String contains only unicode digits.

+ *

Checks if the String contains only Unicode digits.

*

*

null will return false. * An empty String will return true.