Correct assertion for indicators parameter in CompositeHealthIndicator

Closes gh-3417
This commit is contained in:
Johannes Stelzer 2015-07-05 21:21:43 +02:00 committed by Andy Wilkinson
parent 27817b6733
commit fdb83ec338

View File

@ -52,7 +52,7 @@ public class CompositeHealthIndicator implements HealthIndicator {
public CompositeHealthIndicator(HealthAggregator healthAggregator,
Map<String, HealthIndicator> indicators) {
Assert.notNull(healthAggregator, "HealthAggregator must not be null");
Assert.notNull(healthAggregator, "Indicators must not be null");
Assert.notNull(indicators, "Indicators must not be null");
this.indicators = new LinkedHashMap<String, HealthIndicator>(indicators);
this.healthAggregator = healthAggregator;
}