sebbASF commented on a change in pull request #450: Add and use 
IllegalArgumentExceptions
URL: https://github.com/apache/commons-lang/pull/450#discussion_r321358138
 
 

 ##########
 File path: src/main/java/org/apache/commons/lang3/Validate.java
 ##########
 @@ -106,7 +108,7 @@ public Validate() {
      */
     public static void isTrue(final boolean expression, final String message, 
final long value) {
         if (!expression) {
-            throw new IllegalArgumentException(String.format(message, 
Long.valueOf(value)));
+            throw IllegalArgumentExceptions.format(message, 
Long.valueOf(value));
 
 Review comment:
   The same reasoning applies to all the other places once you have changed the 
string concatenation to use String.format.

----------------------------------------------------------------
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

Reply via email to