Commit b3e9a064 authored by Phillip Webb's avatar Phillip Webb

Polish

parent 7f509bf8
...@@ -19,8 +19,6 @@ package org.springframework.boot.actuate.autoconfigure.health; ...@@ -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; ...@@ -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
*/ */
......
...@@ -36,9 +36,9 @@ import org.springframework.util.Assert; ...@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment