Browse Source

Correct assertion for indicators parameter in CompositeHealthIndicator

Closes gh-3417
pull/3630/head
Johannes Stelzer 11 years ago committed by Andy Wilkinson
parent
commit
fdb83ec338
  1. 2
      spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/CompositeHealthIndicator.java

2
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/CompositeHealthIndicator.java

@ -52,7 +52,7 @@ public class CompositeHealthIndicator implements HealthIndicator { @@ -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;
}

Loading…
Cancel
Save