diff --git a/framework-docs/src/docs/asciidoc/core/core-validation.adoc b/framework-docs/src/docs/asciidoc/core/core-validation.adoc index b551b9029d6..cd14151d39f 100644 --- a/framework-docs/src/docs/asciidoc/core/core-validation.adoc +++ b/framework-docs/src/docs/asciidoc/core/core-validation.adoc @@ -1589,9 +1589,9 @@ For example, the following Java configuration registers a global `yyyyMMdd` form registrar.registerFormatters(conversionService); // Register date conversion with a specific global format - DateFormatterRegistrar registrar = new DateFormatterRegistrar(); - registrar.setFormatter(new DateFormatter("yyyyMMdd")); - registrar.registerFormatters(conversionService); + DateFormatterRegistrar anotherRegistrar = new DateFormatterRegistrar(); + anotherRegistrar.setFormatter(new DateFormatter("yyyyMMdd")); + anotherRegistrar.registerFormatters(conversionService); return conversionService; } @@ -1617,9 +1617,9 @@ For example, the following Java configuration registers a global `yyyyMMdd` form registrar.registerFormatters(this) // Register date conversion with a specific global format - val registrar = DateFormatterRegistrar() - registrar.setFormatter(DateFormatter("yyyyMMdd")) - registrar.registerFormatters(this) + val anotherRegistrar = DateFormatterRegistrar() + anotherRegistrar.setFormatter(DateFormatter("yyyyMMdd")) + anotherRegistrar.registerFormatters(this) } } }