Andy Wilkinson opened SPR-16866 and commented
Following the nullability changes in 5.0, three methods on ConditionContext may no longer return null, but may now throw an IlegalStateException instead. Those methods are:
getRegistry()
getBeanFactory()
getClassLoader()
It would be useful if their javadoc documented that an IllegalStateException may now be thrown.
Affects: 5.0.6
Reference URL: spring-projects/spring-boot#13226
Referenced from: commits 50d6d90, 46a89d9