Explicit initialization of shouldValidate flags

Closes gh-32007
This commit is contained in:
rstoyanchev
2024-01-10 18:13:03 +00:00
parent f6e52900a2
commit e7eaaaded1
6 changed files with 47 additions and 34 deletions

View File

@@ -86,7 +86,7 @@ class HandlerMethodTests {
private static HandlerMethod getHandlerMethod(Object target, String methodName) {
Method method = ClassUtils.getMethod(target.getClass(), methodName, (Class<?>[]) null);
return new HandlerMethod(target, method);
return new HandlerMethod(target, method).createWithValidateFlags();
}