diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/BootstrapContext.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/BootstrapContext.java index 5f283ebde92..48410200ef0 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/BootstrapContext.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/BootstrapContext.java @@ -76,7 +76,6 @@ public interface BootstrapContext { * @param exceptionSupplier the supplier which will return the exception to be thrown * @return the instance managed by the context, which may be {@code null} * @throws X if the type has not been registered - * @throws IllegalStateException if the type has not been registered */ T getOrElseThrow(Class type, Supplier exceptionSupplier) throws X;