Polish "Use existing constant rather than "spring.beaninfo.ignore""

See gh-29592
This commit is contained in:
Stephane Nicoll 2022-01-29 15:39:43 +01:00
parent 1a558292a8
commit 0c0ec64ed4
1 changed files with 2 additions and 1 deletions

View File

@ -519,7 +519,8 @@ public class SpringApplication {
private void configureIgnoreBeanInfo(ConfigurableEnvironment environment) {
if (System.getProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME) == null) {
Boolean ignore = environment.getProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME, Boolean.class, Boolean.TRUE);
Boolean ignore = environment.getProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME,
Boolean.class, Boolean.TRUE);
System.setProperty(CachedIntrospectionResults.IGNORE_BEANINFO_PROPERTY_NAME, ignore.toString());
}
}