Skip to content

Commit 239615b

Browse files
authored
Empty bean names composed solely of whitespace are undesirable and must be meaningful values
1 parent c6fa180 commit 239615b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-context/src/main/java/org/springframework/cache/concurrent/ConcurrentMapCacheFactoryBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void setAllowNullValues(boolean allowNullValues) {
7979

8080
@Override
8181
public void setBeanName(String beanName) {
82-
if (!StringUtils.hasLength(this.name)) {
82+
if (!StringUtils.hasText(this.name)) {
8383
setName(beanName);
8484
}
8585
}

0 commit comments

Comments
 (0)