Omit empty resource description in DeprecatedBeanWarner's log message

Closes gh-32647
This commit is contained in:
janghs
2024-04-16 17:49:59 +09:00
committed by Sam Brannen
parent 051fd2ae4f
commit 0d4ef4eafe

View File

@@ -85,7 +85,7 @@ public class DeprecatedBeanWarner implements BeanFactoryPostProcessor {
builder.append(beanName);
builder.append('\'');
String resourceDescription = beanDefinition.getResourceDescription();
if (StringUtils.hasLength(resourceDescription)) {
if (StringUtils.hasText(resourceDescription)) {
builder.append(" in ");
builder.append(resourceDescription);
}