Polishing

This commit is contained in:
Juergen Hoeller
2023-08-23 18:52:55 +02:00
parent afb378a59f
commit 994bbec0c3
2 changed files with 9 additions and 9 deletions

View File

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