Skip to content

Commit 3c8402f

Browse files
committed
Polish
See gh-18194
1 parent ddc96c1 commit 3c8402f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/LegacyHealthEndpointCompatibilityConfiguration.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,9 @@
3939
*/
4040
@Configuration(proxyBeanMethods = false)
4141
@SuppressWarnings("deprecation")
42-
@EnableConfigurationProperties
42+
@EnableConfigurationProperties(HealthIndicatorProperties.class)
4343
class LegacyHealthEndpointCompatibilityConfiguration {
4444

45-
@Bean
46-
HealthIndicatorProperties healthIndicatorProperties() {
47-
return new HealthIndicatorProperties();
48-
}
49-
5045
@Bean
5146
@ConditionalOnMissingBean
5247
HealthAggregator healthAggregator(HealthIndicatorProperties healthIndicatorProperties) {

0 commit comments

Comments
 (0)