Skip to content

Commit a58fa28

Browse files
committed
Javadoc
1 parent 995f227 commit a58fa28

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/main/java/org/apache/commons/lang3/RandomStringUtils.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public static RandomStringUtils insecure() {
129129
* @param count the length of random string to create.
130130
* @return the random string.
131131
* @throws IllegalArgumentException if {@code count} < 0.
132-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
132+
* @deprecated Use {@link #next(int)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
133133
*/
134134
@Deprecated
135135
public static String random(final int count) {
@@ -148,7 +148,7 @@ public static String random(final int count) {
148148
* @param numbers if {@code true}, generated string may include numeric characters.
149149
* @return the random string.
150150
* @throws IllegalArgumentException if {@code count} < 0.
151-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
151+
* @deprecated Use {@link #next(int, boolean, boolean)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
152152
*/
153153
@Deprecated
154154
public static String random(final int count, final boolean letters, final boolean numbers) {
@@ -166,7 +166,7 @@ public static String random(final int count, final boolean letters, final boolea
166166
* @param chars the character array containing the set of characters to use, may be null.
167167
* @return the random string.
168168
* @throws IllegalArgumentException if {@code count} < 0.
169-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
169+
* @deprecated Use {@link #next(int, char...)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
170170
*/
171171
@Deprecated
172172
public static String random(final int count, final char... chars) {
@@ -187,7 +187,7 @@ public static String random(final int count, final char... chars) {
187187
* @param numbers if {@code true}, generated string may include numeric characters.
188188
* @return the random string.
189189
* @throws IllegalArgumentException if {@code count} < 0.
190-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
190+
* @deprecated Use {@link #next(int, int, int, boolean)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
191191
*/
192192
@Deprecated
193193
public static String random(final int count, final int start, final int end, final boolean letters,
@@ -213,7 +213,7 @@ public static String random(final int count, final int start, final int end, fin
213213
* @return the random string.
214214
* @throws ArrayIndexOutOfBoundsException if there are not {@code (end - start) + 1} characters in the set array.
215215
* @throws IllegalArgumentException if {@code count} < 0.
216-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
216+
* @deprecated Use {@link #next(int, int, int, boolean, boolean, char...)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
217217
*/
218218
@Deprecated
219219
public static String random(final int count, final int start, final int end, final boolean letters,
@@ -402,7 +402,7 @@ public static String random(int count, int start, int end, final boolean letters
402402
* @param chars the String containing the set of characters to use, may be null, but must not be empty.
403403
* @return the random string.
404404
* @throws IllegalArgumentException if {@code count} < 0 or the string is empty.
405-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
405+
* @deprecated Use {@link #next(int, String)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
406406
*/
407407
@Deprecated
408408
public static String random(final int count, final String chars) {
@@ -419,7 +419,7 @@ public static String random(final int count, final String chars) {
419419
* @param count the length of random string to create.
420420
* @return the random string.
421421
* @throws IllegalArgumentException if {@code count} < 0.
422-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
422+
* @deprecated Use {@link #nextAlphabetic(int)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
423423
*/
424424
@Deprecated
425425
public static String randomAlphabetic(final int count) {
@@ -437,7 +437,7 @@ public static String randomAlphabetic(final int count) {
437437
* @param maxLengthExclusive the exclusive maximum length of the string to generate.
438438
* @return the random string.
439439
* @since 3.5
440-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
440+
* @deprecated Use {@link #nextAlphabetic(int, int)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
441441
*/
442442
@Deprecated
443443
public static String randomAlphabetic(final int minLengthInclusive, final int maxLengthExclusive) {
@@ -454,7 +454,7 @@ public static String randomAlphabetic(final int minLengthInclusive, final int ma
454454
* @param count the length of random string to create.
455455
* @return the random string.
456456
* @throws IllegalArgumentException if {@code count} < 0.
457-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
457+
* @deprecated Use {@link #nextAlphanumeric(int)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
458458
*/
459459
@Deprecated
460460
public static String randomAlphanumeric(final int count) {
@@ -472,7 +472,7 @@ public static String randomAlphanumeric(final int count) {
472472
* @param maxLengthExclusive the exclusive maximum length of the string to generate.
473473
* @return the random string.
474474
* @since 3.5
475-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
475+
* @deprecated Use {@link #nextAlphanumeric(int, int)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
476476
*/
477477
@Deprecated
478478
public static String randomAlphanumeric(final int minLengthInclusive, final int maxLengthExclusive) {
@@ -490,7 +490,7 @@ public static String randomAlphanumeric(final int minLengthInclusive, final int
490490
* @param count the length of random string to create.
491491
* @return the random string.
492492
* @throws IllegalArgumentException if {@code count} < 0.
493-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
493+
* @deprecated Use {@link #nextAscii(int)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
494494
*/
495495
@Deprecated
496496
public static String randomAscii(final int count) {
@@ -509,7 +509,7 @@ public static String randomAscii(final int count) {
509509
* @param maxLengthExclusive the exclusive maximum length of the string to generate.
510510
* @return the random string.
511511
* @since 3.5
512-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
512+
* @deprecated Use {@link #nextAscii(int, int)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
513513
*/
514514
@Deprecated
515515
public static String randomAscii(final int minLengthInclusive, final int maxLengthExclusive) {
@@ -528,7 +528,7 @@ public static String randomAscii(final int minLengthInclusive, final int maxLeng
528528
* @return the random string.
529529
* @throws IllegalArgumentException if {@code count} < 0.
530530
* @since 3.5
531-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
531+
* @deprecated Use {@link #nextGraph(int)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
532532
*/
533533
@Deprecated
534534
public static String randomGraph(final int count) {
@@ -546,7 +546,7 @@ public static String randomGraph(final int count) {
546546
* @param maxLengthExclusive the exclusive maximum length of the string to generate.
547547
* @return the random string.
548548
* @since 3.5
549-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
549+
* @deprecated Use {@link #nextGraph(int, int)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
550550
*/
551551
@Deprecated
552552
public static String randomGraph(final int minLengthInclusive, final int maxLengthExclusive) {
@@ -563,7 +563,7 @@ public static String randomGraph(final int minLengthInclusive, final int maxLeng
563563
* @param count the length of random string to create.
564564
* @return the random string.
565565
* @throws IllegalArgumentException if {@code count} < 0.
566-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
566+
* @deprecated Use {@link #nextNumeric(int)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
567567
*/
568568
@Deprecated
569569
public static String randomNumeric(final int count) {
@@ -581,7 +581,7 @@ public static String randomNumeric(final int count) {
581581
* @param maxLengthExclusive the exclusive maximum length of the string to generate.
582582
* @return the random string.
583583
* @since 3.5
584-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
584+
* @deprecated Use {@link #nextNumeric(int, int)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
585585
*/
586586
@Deprecated
587587
public static String randomNumeric(final int minLengthInclusive, final int maxLengthExclusive) {
@@ -600,7 +600,7 @@ public static String randomNumeric(final int minLengthInclusive, final int maxLe
600600
* @return the random string.
601601
* @throws IllegalArgumentException if {@code count} < 0.
602602
* @since 3.5
603-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
603+
* @deprecated Use {@link #randomPrint(int)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
604604
*/
605605
@Deprecated
606606
public static String randomPrint(final int count) {
@@ -618,7 +618,7 @@ public static String randomPrint(final int count) {
618618
* @param maxLengthExclusive the exclusive maximum length of the string to generate.
619619
* @return the random string.
620620
* @since 3.5
621-
* @deprecated Use {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
621+
* @deprecated Use {@link #randomPrint(int, int)} from {@link #secure()}, {@link #secureStrong()}, or {@link #insecure()}.
622622
*/
623623
@Deprecated
624624
public static String randomPrint(final int minLengthInclusive, final int maxLengthExclusive) {

0 commit comments

Comments
 (0)