Polish contribution

See gh-34717
This commit is contained in:
Sam Brannen
2025-04-04 15:22:52 +02:00
parent 0f2308e85f
commit 381bc4c405
3 changed files with 4 additions and 3 deletions

View File

@@ -63,6 +63,7 @@ public abstract class BeanFactoryUtils {
*/
private static final Map<String, String> transformedBeanNameCache = new ConcurrentHashMap<>();
/**
* Used to dereference a {@link FactoryBean} instance and distinguish it from
* beans <i>created</i> by the FactoryBean. For example, if the bean named
@@ -79,7 +80,7 @@ public abstract class BeanFactoryUtils {
* @see BeanFactory#FACTORY_BEAN_PREFIX
*/
public static boolean isFactoryDereference(@Nullable String name) {
return (name != null && !name.isEmpty() && name.charAt(0) == FACTORY_BEAN_PREFIX);
return (name != null && !name.isEmpty() && name.charAt(0) == BeanFactory.FACTORY_BEAN_PREFIX_CHAR);
}
/**