Polish contribution
Closes gh-5328
This commit is contained in:
@@ -104,14 +104,14 @@ import org.springframework.mail.javamail.JavaMailSenderImpl;
|
||||
public class HealthIndicatorAutoConfiguration {
|
||||
|
||||
@Autowired
|
||||
private HealthIndicatorProperties configurationProperties = new HealthIndicatorProperties();
|
||||
private HealthIndicatorProperties properties = new HealthIndicatorProperties();
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean(HealthAggregator.class)
|
||||
public OrderedHealthAggregator healthAggregator() {
|
||||
OrderedHealthAggregator healthAggregator = new OrderedHealthAggregator();
|
||||
if (this.configurationProperties.getOrder() != null) {
|
||||
healthAggregator.setStatusOrder(this.configurationProperties.getOrder());
|
||||
if (this.properties.getOrder() != null) {
|
||||
healthAggregator.setStatusOrder(this.properties.getOrder());
|
||||
}
|
||||
return healthAggregator;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
Reference in New Issue
Block a user