From 0269eb80dab935834f03e2b42b3fe4198dd15a54 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Wed, 11 Mar 2026 17:17:28 +0100 Subject: [PATCH] Fix typo and improve Javadoc for ConfigurationBeanNameGenerator --- .../context/annotation/ConfigurationBeanNameGenerator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationBeanNameGenerator.java b/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationBeanNameGenerator.java index 2787c2b8245..b40ada4e5ec 100644 --- a/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationBeanNameGenerator.java +++ b/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationBeanNameGenerator.java @@ -37,9 +37,10 @@ public interface ConfigurationBeanNameGenerator extends BeanNameGenerator { /** * Derive a default bean name for the given {@link Bean @Bean} method, - * providing the {@link Bean#name() name} attribute specified. + * taking into account the specified {@link Bean#name() name} attribute. * @param beanMethod the method metadata for the {@link Bean @Bean} method - * @param beanName the {@link Bean#name() name} attribute or {@code null} if non is specified + * @param beanName the {@link Bean#name() name} attribute or {@code null} if + * none is specified * @return the default bean name to use */ String deriveBeanName(MethodMetadata beanMethod, @Nullable String beanName);