Add more nullability annotations to module/spring-boot-actuator-autoconfigure

See gh-46587
This commit is contained in:
Moritz Halbritter
2025-08-04 11:27:40 +02:00
parent 65382a9f89
commit 2ce974c7b1
@@ -67,6 +67,7 @@ public final class ManagementContextFactory {
}
ConfigurableApplicationContext managementContext = ApplicationContextFactory.DEFAULT
.create(this.webApplicationType);
Assert.state(managementContext != null, "'managementContext' must not be null");
managementContext.setEnvironment(childEnvironment);
managementContext.setParent(parentContext);
return managementContext;