Polishing

This commit is contained in:
Juergen Hoeller
2023-08-23 18:52:55 +02:00
parent 6fed3a0d6b
commit 906a9f7982
2 changed files with 9 additions and 9 deletions

View File

@@ -1427,7 +1427,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;