garydgregory commented on code in PR #874:
URL: https://github.com/apache/commons-lang/pull/874#discussion_r843925968


##########
src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java:
##########
@@ -422,13 +426,16 @@ public static Object invokeStaticMethod(final Class<?> 
cls, final String methodN
      *  method invoked
      * @throws IllegalAccessException if the requested method is not accessible
      *  via reflection
+     * @throws NullPointerException if the specified method or the cls is 
{@code null}.
      */
     public static Object invokeStaticMethod(final Class<?> cls, final String 
methodName,
             Object[] args, Class<?>[] parameterTypes)
             throws NoSuchMethodException, IllegalAccessException,
             InvocationTargetException {
         args = ArrayUtils.nullToEmpty(args);
         parameterTypes = ArrayUtils.nullToEmpty(parameterTypes);
+        Objects.requireNonNull(cls, "cls");
+        Objects.requireNonNull(methodName, "methodName");

Review Comment:
   -1 Same comment as above.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to