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

 ##########
 File path: src/main/java/org/apache/commons/lang3/Conversion.java
 ##########
 @@ -95,7 +97,7 @@
     public static int hexDigitToInt(final char hexDigit) {
         final int digit = Character.digit(hexDigit, 16);
         if (digit < 0) {
-            throw new IllegalArgumentException("Cannot interpret '" + hexDigit 
+ "' as a hexadecimal digit");
+            throw IllegalArgumentExceptions.format("Cannot interpret '%s' as a 
hexadecimal digit", hexDigit);
 
 Review comment:
   OK

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