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 2022/11/27 22:08:18 UTC
[maven-shared-utils] 01/01: deprecate join methods now available in Java 8 String class
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch dep
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git
commit e1703e062e29e15e312d9b2d4f2938d122a82d94
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Sun Nov 27 17:08:05 2022 -0500
deprecate join methods now available in Java 8 String class
---
src/main/java/org/apache/maven/shared/utils/StringUtils.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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 de4a1e8..a355e2e 100644
--- a/src/main/java/org/apache/maven/shared/utils/StringUtils.java
+++ b/src/main/java/org/apache/maven/shared/utils/StringUtils.java
@@ -618,7 +618,9 @@ public class StringUtils
* @param array the array of values to join together
* @param separator the separator character to use
* @return the joined String
+ * @deprecated use <code>java.lang.String.join(</code>) instead
*/
+ @Deprecated
@Nonnull public static String join( @Nonnull Object[] array, @Nullable String separator )
{
if ( separator == null )
@@ -650,7 +652,9 @@ public class StringUtils
* @param iterator the <code>Iterator</code> of values to join together
* @param separator the separator character to use
* @return the joined String
+ * @deprecated use <code>java.lang.String.join(</code>) instead
*/
+ @Deprecated
@Nonnull public static String join( @Nonnull Iterator<?> iterator, String separator )
{
if ( separator == null )
@@ -689,7 +693,7 @@ public class StringUtils
}
/**
- * <p>Replace all occurances of a char within another char.</p>
+ * <p>Replace all occurrences of a char within a string with another char.</p>
*
* <p>A <code>null</code> reference passed to this method is a no-op.</p>
*