You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may better to change to !StringUtils#hasLength or !StringUtils#hasText instead of ObjectUtils#isEmpty.
If you use isEmpty without careful consideration, you may not notice the difference between an empty String and an empty String array, for example.
Description
Part of #989
Starting with Spring 5.3.0,
StringUtils#isEmpty
has been deprecated.StringUtils.isEmpty(Object)
and replace remaining usage (e.g. withObjectUtils.isEmpty
) spring-projects/spring-framework#25945Possible Solution
Replace.
from
org.springframework.util.StringUtils#isEmpty
to
org.springframework.util.ObjectUtils#ObjectUtils.isEmpty
Affect versions
Issue links
The text was updated successfully, but these errors were encountered: