Repository: commons-text
Updated Branches:
  refs/heads/master 483728dd0 -> 4004cfdee


Remove reference to immutability from RandomStringGenerator docs

The use of a random generator with a changing internal state means
RandomStringGenerator cannot be considered immutable.

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

Branch: refs/heads/master
Commit: 4004cfdee9ed488cf562011de9ef19a2854b1d19
Parents: 483728d
Author: duncan <dun...@wortharead.com>
Authored: Sun Jun 4 08:33:05 2017 +0100
Committer: duncan <dun...@wortharead.com>
Committed: Sun Jun 4 08:33:05 2017 +0100

----------------------------------------------------------------------
 src/main/java/org/apache/commons/text/RandomStringGenerator.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/4004cfde/src/main/java/org/apache/commons/text/RandomStringGenerator.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/text/RandomStringGenerator.java 
b/src/main/java/org/apache/commons/text/RandomStringGenerator.java
index 58ebfb8..9bd5422 100644
--- a/src/main/java/org/apache/commons/text/RandomStringGenerator.java
+++ b/src/main/java/org/apache/commons/text/RandomStringGenerator.java
@@ -46,10 +46,10 @@ import org.apache.commons.lang3.Validate;
  * String randomLetters = generator.generate(20);
  * </pre>
  * <p>
- * {@code RandomStringBuilder} instances are immutable and thread-safe if 
using the
+ * {@code RandomStringBuilder} instances are thread-safe when using the
  * default random number generator (RNG). If a custom RNG is set by calling 
the method 
  * {@link Builder#usingRandom(TextRandomProvider) 
Builder.usingRandom(TextRandomProvider)}, thread-safety 
- * and immutability must be ensured externally.
+ * must be ensured externally.
  * </p>
  * @since 1.1
  */

Reply via email to