You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mb...@apache.org on 2011/04/03 19:30:34 UTC
svn commit: r1088344 -
/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
Author: mbenson
Date: Sun Apr 3 17:30:34 2011
New Revision: 1088344
URL: http://svn.apache.org/viewvc?rev=1088344&view=rev
Log:
varargs
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/RandomStringUtils.java?rev=1088344&r1=1088343&r2=1088344&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/RandomStringUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/RandomStringUtils.java Sun Apr 3 17:30:34 2011
@@ -187,7 +187,7 @@ public class RandomStringUtils {
* @throws ArrayIndexOutOfBoundsException if there are not
* {@code (end - start) + 1} characters in the set array.
*/
- public static String random(int count, int start, int end, boolean letters, boolean numbers, char[] chars) {
+ public static String random(int count, int start, int end, boolean letters, boolean numbers, char... chars) {
return random(count, start, end, letters, numbers, chars, RANDOM);
}
@@ -316,7 +316,7 @@ public class RandomStringUtils {
* @return the random string
* @throws IllegalArgumentException if {@code count} < 0.
*/
- public static String random(int count, char[] chars) {
+ public static String random(int count, char... chars) {
if (chars == null) {
return random(count, 0, 0, false, false, null, RANDOM);
}