commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [lang] LANG-1346: Remove deprecation from RandomStringUtils
Date Fri, 28 Jul 2017 15:07:11 GMT
Repository: commons-lang
Updated Branches:
  refs/heads/master fdccdeaec -> f2d8493ac


LANG-1346: Remove deprecation from RandomStringUtils


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

Branch: refs/heads/master
Commit: f2d8493ac44995170ff84bb895e3a73e0127cc68
Parents: fdccdea
Author: pascalschumacher <pascalschumacher@gmx.net>
Authored: Fri Jul 28 17:06:36 2017 +0200
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Fri Jul 28 17:06:36 2017 +0200

----------------------------------------------------------------------
 src/changes/changes.xml                                   |  1 +
 .../java/org/apache/commons/lang3/RandomStringUtils.java  | 10 +++++-----
 .../org/apache/commons/lang3/RandomStringUtilsTest.java   |  1 -
 3 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/f2d8493a/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index d4d251d..ee6c0ef 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -46,6 +46,7 @@ The <action> type attribute can be add,update,fix,remove.
   <body>
 
   <release version="3.7" date="tba" description="tba">
+    <action issue="LANG-1346" type="update" dev="pschumacher">Remove deprecation from
RandomStringUtils</action>
   </release>
 
   <release version="3.6" date="2017-06-08" description="New features and bug fixes. Requires
Java 7.">

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/f2d8493a/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 25bfe31..16445fa 100644
--- a/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
@@ -27,15 +27,15 @@ import java.util.Random;
  * high surrogate is randomly chosen, 55296 (d800) to 56191 (db7f)
  * then it is followed by a low surrogate. If a low surrogate is chosen,
  * 56320 (dc00) to 57343 (dfff) then it is placed after a randomly
- * chosen high surrogate. </p>
+ * chosen high surrogate.</p>
+ * <p>RandomStringUtils is intended for simple use cases. For more advanced
+ * use cases consider using commons-text 
+ * <a href="https://commons.apache.org/proper/commons-text/javadocs/api-release/org/apache/commons/text/RandomStringGenerator.html">
+ * RandomStringGenerator</a> instead.</p>
  *
  * <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/f2d8493a/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 d3ed631..2b2c4a5 100644
--- a/src/test/java/org/apache/commons/lang3/RandomStringUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/RandomStringUtilsTest.java
@@ -37,7 +37,6 @@ import org.junit.Test;
 /**
  * Unit tests {@link org.apache.commons.lang3.RandomStringUtils}.
  */
-@Deprecated
 public class RandomStringUtilsTest {
 
     //-----------------------------------------------------------------------


Mime
View raw message