From 0910eedb5447cc5e3482bc7cb3abc3248c94f9c0 Mon Sep 17 00:00:00 2001 From: John Blum Date: Wed, 10 Jul 2024 13:11:00 -0700 Subject: [PATCH] Correct grammar in Javadoc Closes PR #41443 --- .../org/springframework/boot/BootstrapContext.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 197620f1b374..a8ea7f4fbed2 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 @@ -35,7 +35,7 @@ public interface BootstrapContext { /** * Return an instance from the context if the type has been registered. The instance - * will be created it if it hasn't been accessed previously. + * will be created if it hasn't been accessed previously. * @param the instance type * @param type the instance type * @return the instance managed by the context @@ -45,7 +45,7 @@ public interface BootstrapContext { /** * Return an instance from the context if the type has been registered. The instance - * will be created it if it hasn't been accessed previously. + * will be created if it hasn't been accessed previously. * @param the instance type * @param type the instance type * @param other the instance to use if the type has not been registered @@ -55,7 +55,7 @@ public interface BootstrapContext { /** * Return an instance from the context if the type has been registered. The instance - * will be created it if it hasn't been accessed previously. + * will be created if it hasn't been accessed previously. * @param the instance type * @param type the instance type * @param other a supplier for the instance to use if the type has not been registered @@ -65,7 +65,7 @@ public interface BootstrapContext { /** * Return an instance from the context if the type has been registered. The instance - * will be created it if it hasn't been accessed previously. + * will be created if it hasn't been accessed previously. * @param the instance type * @param the exception to throw if the type is not registered * @param type the instance type @@ -77,7 +77,7 @@ public interface BootstrapContext { T getOrElseThrow(Class type, Supplier exceptionSupplier) throws X; /** - * Return if a registration exists for the given type. + * Return {@code true} if a registration exists for the given type. * @param the instance type * @param type the instance type * @return {@code true} if the type has already been registered