This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new d24fad766 More bullet proofing
d24fad766 is described below

commit d24fad76667d20fd7e790a017e1948e3179cb62f
Author: Gary D. Gregory <[email protected]>
AuthorDate: Tue Oct 14 08:39:06 2025 -0400

    More bullet proofing
---
 src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java 
b/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java
index 731443f11..778bf1856 100644
--- a/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java
+++ b/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java
@@ -42,6 +42,7 @@
 import org.apache.commons.lang3.ClassUtils.Interfaces;
 import org.apache.commons.lang3.Validate;
 import org.apache.commons.lang3.stream.LangCollectors;
+import org.apache.commons.lang3.stream.Streams;
 
 /**
  * Utility reflection methods focused on {@link Method}s, originally from 
Commons BeanUtils.
@@ -1022,8 +1023,8 @@ public static Object invokeStaticMethod(final Class<?> 
cls, final String methodN
     private static Method requireNonNull(final Method method, final Class<?> 
cls, final String methodName, final Class<?>[] parameterTypes)
             throws NoSuchMethodException {
         if (method == null) {
-            throw new NoSuchMethodException(String.format("No method: 
%s.%s(%s)", cls.getName(), methodName,
-                    
Stream.of(parameterTypes).map(ClassUtils::getName).collect(LangCollectors.joining(",
 "))));
+            throw new NoSuchMethodException(String.format("No method: 
%s.%s(%s)", ClassUtils.getName(cls), methodName,
+                    
Streams.of(parameterTypes).map(ClassUtils::getName).collect(LangCollectors.joining(",
 "))));
         }
         return method;
     }

Reply via email to