Fix typo and improve Javadoc for ConfigurationBeanNameGenerator

This commit is contained in:
Sam Brannen
2026-03-11 17:17:28 +01:00
parent 9cedcd65ef
commit 0269eb80da
@@ -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);