diff --git a/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapContext.java b/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapContext.java index b2970b84bcd1..66a7247415ec 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapContext.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapContext.java @@ -79,7 +79,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 */ @Nullable T getOrElseThrow(Class type, Supplier exceptionSupplier) throws X;