Polish
This commit is contained in:
parent
7f509bf84e
commit
b3e9a06476
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@ import org.springframework.util.Assert;
|
|||
*/
|
||||
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) {
|
||||
Assert.notNull(map, "Map must not be null");
|
||||
|
|
|
|||
Loading…
Reference in New Issue