From 53b9a2cb78815099d7328aa05d64e44424e2636e Mon Sep 17 00:00:00 2001 From: Tran Ngoc Nhan Date: Tue, 12 Nov 2024 22:34:17 +0700 Subject: [PATCH] Fix formatting issue in validation section of reference guide Closes gh-33871 --- .../modules/ROOT/pages/core/validation/validator.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework-docs/modules/ROOT/pages/core/validation/validator.adoc b/framework-docs/modules/ROOT/pages/core/validation/validator.adoc index 17fa6402d3ba..7fbbddb732d3 100644 --- a/framework-docs/modules/ROOT/pages/core/validation/validator.adoc +++ b/framework-docs/modules/ROOT/pages/core/validation/validator.adoc @@ -198,7 +198,7 @@ methods it offers can be found in the {spring-framework-api}/validation/Errors.h Validators may also get locally invoked for the immediate validation of a given object, not involving a binding process. As of 6.1, this has been simplified through a new `Validator.validateObject(Object)` method which is available by default now, returning -a simple ´Errors` representation which can be inspected: typically calling `hasErrors()` +a simple `Errors` representation which can be inspected: typically calling `hasErrors()` or the new `failOnError` method for turning the error summary message into an exception (e.g. `validator.validateObject(myObject).failOnError(IllegalArgumentException::new)`).