diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/ReactiveHealthContributorRegistryReactiveHealthIndicatorRegistryAdapter.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/ReactiveHealthContributorRegistryReactiveHealthIndicatorRegistryAdapter.java index 5b1cdce8d8..863edd6aea 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/ReactiveHealthContributorRegistryReactiveHealthIndicatorRegistryAdapter.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/ReactiveHealthContributorRegistryReactiveHealthIndicatorRegistryAdapter.java @@ -19,8 +19,6 @@ package org.springframework.boot.actuate.autoconfigure.health; import java.util.LinkedHashMap; import java.util.Map; -import org.springframework.boot.actuate.health.HealthContributorRegistry; -import org.springframework.boot.actuate.health.HealthIndicatorRegistry; import org.springframework.boot.actuate.health.NamedContributor; import org.springframework.boot.actuate.health.ReactiveHealthContributor; import org.springframework.boot.actuate.health.ReactiveHealthContributorRegistry; @@ -29,8 +27,8 @@ import org.springframework.boot.actuate.health.ReactiveHealthIndicatorRegistry; import org.springframework.util.Assert; /** - * Adapter class to convert a {@link HealthContributorRegistry} to a legacy - * {@link HealthIndicatorRegistry}. + * Adapter class to convert a {@link ReactiveHealthContributorRegistry} to a legacy + * {@link ReactiveHealthIndicatorRegistry}. * * @author Phillip Webb */ diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/NamedContributorsMapAdapter.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/NamedContributorsMapAdapter.java index 82ffcd46b5..4645ad047b 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/NamedContributorsMapAdapter.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/NamedContributorsMapAdapter.java @@ -36,9 +36,9 @@ import org.springframework.util.Assert; */ abstract class NamedContributorsMapAdapter implements NamedContributors { - private Map map; + private final Map map; - private Function valueAdapter; + private final Function valueAdapter; NamedContributorsMapAdapter(Map map, Function valueAdapter) { Assert.notNull(map, "Map must not be null");