From 4cea07b48f5f375f81b39b8339935a206cf4a598 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 28 Aug 2021 16:32:53 -0400 Subject: [PATCH] Link to Apache Commons Text instead of deprecated methods. --- pom.xml | 83 +++++++++++++------ .../org/apache/commons/lang3/StringUtils.java | 10 +-- 2 files changed, 61 insertions(+), 32 deletions(-) diff --git a/pom.xml b/pom.xml index 36c03ceb6..6998893ee 100644 --- a/pom.xml +++ b/pom.xml @@ -559,13 +559,20 @@ test + + + org.apache.commons + commons-text + 1.9 + provided + + org.openjdk.jmh jmh-core ${jmh.version} test - org.openjdk.jmh jmh-generator-annprocess @@ -674,32 +681,34 @@ maven-javadoc-plugin - - ${maven.compiler.source} - true - true - - https://docs.oracle.com/javase/8/docs/api/ - http://docs.oracle.com/javaee/6/api/ - - - - true - true - - - - - - create-javadoc-jar - - javadoc - jar - - package - - - + + ${maven.compiler.source} + true + true + + https://commons.apache.org/proper/commons-text/apidocs + https://docs.oracle.com/javase/8/docs/api + https://docs.oracle.com/javaee/6/api + + true + + + true + true + + + + + + create-javadoc-jar + + javadoc + jar + + package + + + org.apache.maven.plugins maven-surefire-plugin @@ -803,6 +812,26 @@ + + maven-javadoc-plugin + + ${maven.compiler.source} + true + true + + https://commons.apache.org/proper/commons-text/apidocs + https://docs.oracle.com/javase/8/docs/api + https://docs.oracle.com/javaee/6/api + + true + + + true + true + + + + maven-checkstyle-plugin ${checkstyle.plugin.version} diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index 8de2484a5..9f0442089 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -522,7 +522,7 @@ public class StringUtils { *

Capitalizes a String changing the first character to title case as * per {@link Character#toTitleCase(int)}. No other characters are changed.

* - *

For a word based algorithm, see {@link org.apache.commons.lang3.text.WordUtils#capitalize(String)}. + *

For a word based algorithm, see {@link org.apache.commons.text.WordUtils#capitalize(String)}. * A {@code null} input String returns {@code null}.

* *
@@ -535,7 +535,7 @@ public class StringUtils {
      *
      * @param str the String to capitalize, may be null
      * @return the capitalized String, {@code null} if null String input
-     * @see org.apache.commons.lang3.text.WordUtils#capitalize(String)
+     * @see org.apache.commons.text.WordUtils#capitalize(String)
      * @see #uncapitalize(String)
      * @since 2.0
      */
@@ -8941,7 +8941,7 @@ public class StringUtils {
      *  
  • Lower case character converts to Upper case
  • * * - *

    For a word based algorithm, see {@link org.apache.commons.lang3.text.WordUtils#swapCase(String)}. + *

    For a word based algorithm, see {@link org.apache.commons.text.WordUtils#swapCase(String)}. * A {@code null} input String returns {@code null}.

    * *
    @@ -9278,7 +9278,7 @@ public class StringUtils {
          * 

    Uncapitalizes a String, changing the first character to lower case as * per {@link Character#toLowerCase(int)}. No other characters are changed.

    * - *

    For a word based algorithm, see {@link org.apache.commons.lang3.text.WordUtils#uncapitalize(String)}. + *

    For a word based algorithm, see {@link org.apache.commons.text.WordUtils#uncapitalize(String)}. * A {@code null} input String returns {@code null}.

    * *
    @@ -9291,7 +9291,7 @@ public class StringUtils {
          *
          * @param str the String to uncapitalize, may be null
          * @return the uncapitalized String, {@code null} if null String input
    -     * @see org.apache.commons.lang3.text.WordUtils#uncapitalize(String)
    +     * @see org.apache.commons.text.WordUtils#uncapitalize(String)
          * @see #capitalize(String)
          * @since 2.0
          */