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);