michael-o commented on a change in pull request #171: Consistency fixes
URL: 
https://github.com/apache/httpcomponents-core/pull/171#discussion_r361341277
 
 

 ##########
 File path: httpcore5/src/main/java/org/apache/hc/core5/util/Args.java
 ##########
 @@ -114,7 +114,7 @@ private static IllegalArgumentException 
illegalArgumentExceptionNotNull(final St
 
     public static <T extends CharSequence> T notEmpty(final T argument, final 
String name) {
         if (argument == null) {
-            throw illegalArgumentExceptionNotNull(name);
+            throw NullPointerException(name);
 
 Review comment:
   Sure, why not. I kept this for consistency with the rest of the class.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to