Skip to content

Commit fd7e648

Browse files
wonwoosbrannen
authored andcommitted
Fix syntax in validation examples
Closes gh-25251
1 parent 94d7462 commit fd7e648

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/docs/asciidoc/core/core-validation.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,12 +1891,11 @@ bean, as the following example shows:
18911891
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;
18921892
18931893
@Configuration
1894-
18951894
public class AppConfig {
18961895
18971896
@Bean
18981897
public LocalValidatorFactoryBean validator() {
1899-
return new LocalValidatorFactoryBean;
1898+
return new LocalValidatorFactoryBean();
19001899
}
19011900
}
19021901
----
@@ -2050,12 +2049,11 @@ a custom extension, also by Hibernate Validator 4.3) into a Spring context throu
20502049
import org.springframework.validation.beanvalidation.MethodValidationPostProcessor;
20512050
20522051
@Configuration
2053-
20542052
public class AppConfig {
20552053
20562054
@Bean
20572055
public MethodValidationPostProcessor validationPostProcessor() {
2058-
return new MethodValidationPostProcessor;
2056+
return new MethodValidationPostProcessor();
20592057
}
20602058
}
20612059

0 commit comments

Comments
 (0)