You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/08/28 20:32:56 UTC
[commons-lang] branch master updated: Link to Apache Commons Text
instead of deprecated methods.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 4cea07b Link to Apache Commons Text instead of deprecated methods.
4cea07b is described below
commit 4cea07b48f5f375f81b39b8339935a206cf4a598
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Aug 28 16:32:53 2021 -0400
Link to Apache Commons Text instead of deprecated methods.
---
pom.xml | 83 +++++++++++++++-------
.../java/org/apache/commons/lang3/StringUtils.java | 10 +--
2 files changed, 61 insertions(+), 32 deletions(-)
diff --git a/pom.xml b/pom.xml
index 36c03ce..6998893 100644
--- a/pom.xml
+++ b/pom.xml
@@ -559,13 +559,20 @@
<scope>test</scope>
</dependency>
+ <!-- For Javadoc links -->
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-text</artifactId>
+ <version>1.9</version>
+ <scope>provided</scope>
+ </dependency>
+
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-core</artifactId>
<version>${jmh.version}</version>
<scope>test</scope>
</dependency>
-
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
@@ -674,32 +681,34 @@
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <source>${maven.compiler.source}</source>
- <quiet>true</quiet>
- <notimestamp>true</notimestamp>
- <links>
- <link>https://docs.oracle.com/javase/8/docs/api/</link>
- <link>http://docs.oracle.com/javaee/6/api/</link>
- </links>
- <archive>
- <manifest>
- <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
- <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
- </manifest>
- </archive>
- </configuration>
- <executions>
- <execution>
- <id>create-javadoc-jar</id>
- <goals>
- <goal>javadoc</goal>
- <goal>jar</goal>
- </goals>
- <phase>package</phase>
- </execution>
- </executions>
- </plugin>
+ <configuration>
+ <source>${maven.compiler.source}</source>
+ <quiet>true</quiet>
+ <notimestamp>true</notimestamp>
+ <links>
+ <link>https://commons.apache.org/proper/commons-text/apidocs</link>
+ <link>https://docs.oracle.com/javase/8/docs/api</link>
+ <link>https://docs.oracle.com/javaee/6/api</link>
+ </links>
+ <validateLinks>true</validateLinks>
+ <archive>
+ <manifest>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
+ </manifest>
+ </archive>
+ </configuration>
+ <executions>
+ <execution>
+ <id>create-javadoc-jar</id>
+ <goals>
+ <goal>javadoc</goal>
+ <goal>jar</goal>
+ </goals>
+ <phase>package</phase>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
@@ -804,6 +813,26 @@
<reporting>
<plugins>
<plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <source>${maven.compiler.source}</source>
+ <quiet>true</quiet>
+ <notimestamp>true</notimestamp>
+ <links>
+ <link>https://commons.apache.org/proper/commons-text/apidocs</link>
+ <link>https://docs.oracle.com/javase/8/docs/api</link>
+ <link>https://docs.oracle.com/javaee/6/api</link>
+ </links>
+ <validateLinks>true</validateLinks>
+ <archive>
+ <manifest>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ <plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle.plugin.version}</version>
<configuration>
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java
index 8de2484..9f04420 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 {
* <p>Capitalizes a String changing the first character to title case as
* per {@link Character#toTitleCase(int)}. No other characters are changed.</p>
*
- * <p>For a word based algorithm, see {@link org.apache.commons.lang3.text.WordUtils#capitalize(String)}.
+ * <p>For a word based algorithm, see {@link org.apache.commons.text.WordUtils#capitalize(String)}.
* A {@code null} input String returns {@code null}.</p>
*
* <pre>
@@ -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 {
* <li>Lower case character converts to Upper case</li>
* </ul>
*
- * <p>For a word based algorithm, see {@link org.apache.commons.lang3.text.WordUtils#swapCase(String)}.
+ * <p>For a word based algorithm, see {@link org.apache.commons.text.WordUtils#swapCase(String)}.
* A {@code null} input String returns {@code null}.</p>
*
* <pre>
@@ -9278,7 +9278,7 @@ public class StringUtils {
* <p>Uncapitalizes a String, changing the first character to lower case as
* per {@link Character#toLowerCase(int)}. No other characters are changed.</p>
*
- * <p>For a word based algorithm, see {@link org.apache.commons.lang3.text.WordUtils#uncapitalize(String)}.
+ * <p>For a word based algorithm, see {@link org.apache.commons.text.WordUtils#uncapitalize(String)}.
* A {@code null} input String returns {@code null}.</p>
*
* <pre>
@@ -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
*/