commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [2/2] [lang] LANG-1316: Deprecate classes/methods moved to commons-text
Date Thu, 25 May 2017 12:49:57 GMT
LANG-1316: Deprecate classes/methods moved to commons-text

Deprecated WordUtils and RandomStringUtils now that commons-text 1.1 was released.


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/ebe7bb58
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/ebe7bb58
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/ebe7bb58

Branch: refs/heads/master
Commit: ebe7bb58a541bf397333f466d412e617266ee5aa
Parents: 8019416
Author: pascalschumacher <pascalschumacher@gmx.net>
Authored: Thu May 25 14:49:46 2017 +0200
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Thu May 25 14:49:46 2017 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/lang3/RandomStringUtils.java    | 4 ++++
 src/main/java/org/apache/commons/lang3/text/WordUtils.java       | 4 ++++
 .../java/org/apache/commons/lang3/RandomStringUtilsTest.java     | 1 +
 src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java   | 1 +
 4 files changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ebe7bb58/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/RandomStringUtils.java b/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
index ba42d36..c5e256b 100644
--- a/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
@@ -31,7 +31,11 @@ import java.util.Random;
  *
  * <p>#ThreadSafe#</p>
  * @since 1.0
+ * @deprecated as of 3.6, use commons-text
+ * <a href="https://commons.apache.org/proper/commons-text/javadocs/api-release/org/apache/commons/text/RandomStringGenerator.html">
+ * RandomStringGenerator</a> instead
  */
+@Deprecated
 public class RandomStringUtils {
 
     /**

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ebe7bb58/src/main/java/org/apache/commons/lang3/text/WordUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/text/WordUtils.java b/src/main/java/org/apache/commons/lang3/text/WordUtils.java
index 0f6f363..16ae683 100644
--- a/src/main/java/org/apache/commons/lang3/text/WordUtils.java
+++ b/src/main/java/org/apache/commons/lang3/text/WordUtils.java
@@ -30,7 +30,11 @@ import org.apache.commons.lang3.StringUtils;
  * Each method documents its behaviour in more detail.</p>
  * 
  * @since 2.0
+ * @deprecated as of 3.6, use commons-text
+ * <a href="https://commons.apache.org/proper/commons-text/javadocs/api-release/org/apache/commons/text/WordUtils.html">
+ * WordUtils</a> instead
  */
+@Deprecated
 public class WordUtils {
 
     /**

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ebe7bb58/src/test/java/org/apache/commons/lang3/RandomStringUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/lang3/RandomStringUtilsTest.java b/src/test/java/org/apache/commons/lang3/RandomStringUtilsTest.java
index 961eb2d..68d10d2 100644
--- a/src/test/java/org/apache/commons/lang3/RandomStringUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/RandomStringUtilsTest.java
@@ -37,6 +37,7 @@ import org.junit.Test;
 /**
  * Unit tests {@link org.apache.commons.lang3.RandomStringUtils}.
  */
+@Deprecated
 public class RandomStringUtilsTest {
 
     //-----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ebe7bb58/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java b/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java
index a709a77..370e754 100644
--- a/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java
@@ -29,6 +29,7 @@ import org.junit.Test;
 /**
  * Unit tests for WordUtils class.
  */
+@Deprecated
 public class WordUtilsTest {
 
     //-----------------------------------------------------------------------


Mime
View raw message