Remove redundant explicit types
See gh-18754
This commit is contained in:
committed by
Stephane Nicoll
parent
ee0a66a2af
commit
9ece2e277f
@@ -85,7 +85,7 @@ class AutoConfiguredHealthEndpointGroups implements HealthEndpointGroups {
|
||||
private Map<String, HealthEndpointGroup> createGroups(Map<String, Group> groupProperties, BeanFactory beanFactory,
|
||||
StatusAggregator defaultStatusAggregator, HttpCodeStatusMapper defaultHttpCodeStatusMapper,
|
||||
Show defaultShowComponents, Show defaultShowDetails, Set<String> defaultRoles) {
|
||||
Map<String, HealthEndpointGroup> groups = new LinkedHashMap<String, HealthEndpointGroup>();
|
||||
Map<String, HealthEndpointGroup> groups = new LinkedHashMap<>();
|
||||
groupProperties.forEach((groupName, group) -> {
|
||||
Status status = group.getStatus();
|
||||
Show showComponents = (group.getShowComponents() != null) ? group.getShowComponents()
|
||||
|
||||
@@ -43,7 +43,7 @@ class HealthAggregatorStatusAggregatorAdapter implements StatusAggregator {
|
||||
@Override
|
||||
public Status getAggregateStatus(Set<Status> statuses) {
|
||||
int index = 0;
|
||||
Map<String, Health> healths = new LinkedHashMap<String, Health>();
|
||||
Map<String, Health> healths = new LinkedHashMap<>();
|
||||
for (Status status : statuses) {
|
||||
index++;
|
||||
healths.put("health" + index, asHealth(status));
|
||||
|
||||
@@ -67,7 +67,7 @@ class HealthContributorRegistryHealthIndicatorRegistryAdapter implements HealthI
|
||||
|
||||
@Override
|
||||
public Map<String, HealthIndicator> getAll() {
|
||||
Map<String, HealthIndicator> all = new LinkedHashMap<String, HealthIndicator>();
|
||||
Map<String, HealthIndicator> all = new LinkedHashMap<>();
|
||||
for (NamedContributor<?> namedContributor : this.contributorRegistry) {
|
||||
if (namedContributor.getContributor() instanceof HealthIndicator) {
|
||||
all.put(namedContributor.getName(), (HealthIndicator) namedContributor.getContributor());
|
||||
|
||||
@@ -37,7 +37,7 @@ public class HealthIndicatorProperties {
|
||||
|
||||
private List<String> order = new ArrayList<>();
|
||||
|
||||
private final Map<String, Integer> httpMapping = new LinkedHashMap<String, Integer>();
|
||||
private final Map<String, Integer> httpMapping = new LinkedHashMap<>();
|
||||
|
||||
@DeprecatedConfigurationProperty(replacement = "management.endpoint.health.status.order")
|
||||
public List<String> getOrder() {
|
||||
|
||||
Reference in New Issue
Block a user