garydgregory commented on a change in pull request #171: Consistency fixes
URL:
https://github.com/apache/httpcomponents-core/pull/171#discussion_r361338303
##########
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:
Why not use `Objects.requireNonNull()`?
----------------------------------------------------------------
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]