Polish contribution

Closes gh-5328
This commit is contained in:
Stephane Nicoll
2016-03-04 09:07:22 +01:00
parent 395c36a132
commit aba9389b25
2 changed files with 4 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -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.