This commit is contained in:
Phillip Webb 2019-10-30 10:44:28 -07:00
parent 7f509bf84e
commit b3e9a06476
2 changed files with 4 additions and 6 deletions

View File

@ -19,8 +19,6 @@ package org.springframework.boot.actuate.autoconfigure.health;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.Map; 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.NamedContributor;
import org.springframework.boot.actuate.health.ReactiveHealthContributor; import org.springframework.boot.actuate.health.ReactiveHealthContributor;
import org.springframework.boot.actuate.health.ReactiveHealthContributorRegistry; import org.springframework.boot.actuate.health.ReactiveHealthContributorRegistry;
@ -29,8 +27,8 @@ import org.springframework.boot.actuate.health.ReactiveHealthIndicatorRegistry;
import org.springframework.util.Assert; import org.springframework.util.Assert;
/** /**
* Adapter class to convert a {@link HealthContributorRegistry} to a legacy * Adapter class to convert a {@link ReactiveHealthContributorRegistry} to a legacy
* {@link HealthIndicatorRegistry}. * {@link ReactiveHealthIndicatorRegistry}.
* *
* @author Phillip Webb * @author Phillip Webb
*/ */

View File

@ -36,9 +36,9 @@ import org.springframework.util.Assert;
*/ */
abstract class NamedContributorsMapAdapter<V, C> implements NamedContributors<C> { abstract class NamedContributorsMapAdapter<V, C> implements NamedContributors<C> {
private Map<String, V> map; private final Map<String, V> map;
private Function<V, ? extends C> valueAdapter; private final Function<V, ? extends C> valueAdapter;
NamedContributorsMapAdapter(Map<String, V> map, Function<V, ? extends C> valueAdapter) { NamedContributorsMapAdapter(Map<String, V> map, Function<V, ? extends C> valueAdapter) {
Assert.notNull(map, "Map must not be null"); Assert.notNull(map, "Map must not be null");