garydgregory commented on a change in pull request #450: Add and use
IllegalArgumentExceptions
URL: https://github.com/apache/commons-lang/pull/450#discussion_r321342200
##########
File path: src/main/java/org/apache/commons/lang3/RandomStringUtils.java
##########
@@ -359,7 +361,7 @@ public static String random(int count, int start, int end,
final boolean letters
if (count == 0) {
return StringUtils.EMPTY;
} else if (count < 0) {
- throw new IllegalArgumentException("Requested random string length
" + count + " is less than 0.");
+ throw IllegalArgumentExceptions.format("Requested random string
length %,d is less than 0.", count);
Review comment:
See previous comment.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services