From 28d149fa07a5b9ec2fb4b59f463e5571f2758eec Mon Sep 17 00:00:00 2001 From: Tiemen Schut Date: Sat, 1 Nov 2025 15:10:17 +0100 Subject: [PATCH] Remove incorrect IllegalStateException reference from method javadoc See gh-47903 Signed-off-by: Tiemen Schut --- .../src/main/java/org/springframework/boot/BootstrapContext.java | 1 - 1 file changed, 1 deletion(-) 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;