michael-o commented on issue #192: Deprecate org.apache.hc.core5.util.Args.notNull(T, String) in favor of URL: https://github.com/apache/httpcomponents-core/pull/192#issuecomment-581013767 Here is my opinion and I tend to agree with @ok2c : 1. `Args` still contains a lot of functionality cannot be replaced with plain Java 2. It decreases tge readability a bit because of the former This is what would be a real improvement: ``` public static <T> T notNull(final T argument, final String name) { if (argument == null) { throw NullPointerException(name + "cannot be null"); } return argument; } ``` A mere argument nate is a bit too cheap. Nested here, you could use `Objects`.
---------------------------------------------------------------- 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]
