You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by pa...@apache.org on 2017/07/09 08:21:07 UTC

[text] TEXT-93: RandomStringGenerator accepts a list of valid characters

Repository: commons-text
Updated Branches:
  refs/heads/master 9e48de8c8 -> e8ded07ba


TEXT-93: RandomStringGenerator accepts a list of valid characters

add since javadoc tag and other minimal clean-ups


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

Branch: refs/heads/master
Commit: e8ded07ba5b747aee53ada88a8ca70773881ceb5
Parents: 9e48de8
Author: Pascal Schumacher <pa...@gmx.net>
Authored: Sun Jul 9 10:20:59 2017 +0200
Committer: Pascal Schumacher <pa...@gmx.net>
Committed: Sun Jul 9 10:20:59 2017 +0200

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


http://git-wip-us.apache.org/repos/asf/commons-text/blob/e8ded07b/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 0dcf2a1..b3a763a 100644
--- a/src/main/java/org/apache/commons/text/RandomStringGenerator.java
+++ b/src/main/java/org/apache/commons/text/RandomStringGenerator.java
@@ -78,7 +78,7 @@ public final class RandomStringGenerator {
     private final TextRandomProvider random;
 
     /**
-     * The source of provided charachters.
+     * The source of provided characters.
      */
     private final List<Character> characterList;
 
@@ -122,8 +122,6 @@ public final class RandomStringGenerator {
         return ThreadLocalRandom.current().nextInt(minInclusive, maxInclusive + 1);
     }
 
-
-
     /**
      * Generates a random number within a range, using a {@link ThreadLocalRandom} instance
      * or the user-supplied source of randomness.
@@ -289,7 +287,7 @@ public final class RandomStringGenerator {
         private TextRandomProvider random;
 
         /**
-         * The source of provided charachters.
+         * The source of provided characters.
          */
         private List<Character> characterList;
 
@@ -410,6 +408,7 @@ public final class RandomStringGenerator {
          * @param chars set of preefined Characters for random string generation
          *            the Character can be, may be {@code null} or empty
          * @return {@code this}, to allow method chaining
+         * @since 1.2
          */
         public Builder selectFrom(char ... chars) {
             characterList = new ArrayList<Character>();