Merge branch '6.0.x'

This commit is contained in:
Juergen Hoeller
2023-08-23 19:02:44 +02:00
4 changed files with 70 additions and 53 deletions

View File

@@ -1479,7 +1479,7 @@ public abstract class ClassUtils {
Assert.notNull(methodName, "Method name must not be null");
try {
Method method = clazz.getMethod(methodName, args);
return Modifier.isStatic(method.getModifiers()) ? method : null;
return (Modifier.isStatic(method.getModifiers()) ? method : null);
}
catch (NoSuchMethodException ex) {
return null;