I believe you're using org.springframework.util.StringUtils, which has no isEmpty().

There is, however, an isEmpty() in org.apache.commons.lang.StringUtils.

Ensure that you're using the correct StringUtils.

Answer from arshajii on Stack Overflow
🌐
GitHub
github.com › spring-cloud › spring-cloud-zookeeper › issues › 274
Replace usage of deprecated StringUtils.isEmpty with ! ...
December 4, 2020 - As of Spring 5.3 StringUtils.isEmpty is deprecated.
Published   Dec 04, 2020
Discussions

[Spring 5.3.0] StringUtils#isEmpty has bean deprecated
Description Part of #989 Starting with Spring 5.3.0, StringUtils#isEmpty has been deprecated. Issues: spring-projects/spring-framework#25945 Commit: spring-projects/spring-framework@621295d Possibl... More on github.com
🌐 github.com
2
November 2, 2020
Deprecate `StringUtils.isEmpty(Object)` and replace remaining usage (e.g. with `ObjectUtils.isEmpty`)
Deprecate StringUtils.isEmpty(Object) and replace remaining usage (e.g. More on github.com
🌐 github.com
October 21, 2020
Replace deprecated StringUtils.isEmpty method with StringUtils.hasLength
The issue tracker is ONLY used for bug report and feature request. Any question or RocketMQ proposal please use our mailing lists. BUG REPORT Please describe the issue you observed: The StringUtils.isEmpty of Spring was deprecated use an... More on github.com
🌐 github.com
August 22, 2022
Deprecated StringUtil
I see that StringUtil is deprecated StringUtil (Liquibase Parent 4.28.0 API) The deprecation message says migrate to StringUtils. Which StringUtils class are you concretely reffering to? I guess its form org.apache.commons:commons-lang, not your own liquibase library correct? More on forum.liquibase.org
🌐 forum.liquibase.org
1
0
June 18, 2024
🌐
OpenRewrite
docs.openrewrite.org › recipe catalog › apache › commons › commons lang › replace any stringutils#isempty(string) and #isnotempty(string)
Replace any StringUtils#isEmpty(String) and #isNotEmpty ...
Replace any StringUtils#isEmpty(String) and #isNotEmpty(String) with s == null || s.isEmpty() and s != null && !s.isEmpty().
Published   1 week ago
🌐
Apache Commons
commons.apache.org › proper › commons-lang › apidocs › org › apache › commons › lang3 › StringUtils.html
StringUtils (Apache Commons Lang 3.20.0 API)
A side effect of the null handling ... a bug in StringUtils. Methods in this class include sample code in their Javadoc comments to explain their operation. The symbol * is used to indicate any input including null. ... A String for carriage return CR ("\r"). ... The empty String "". ... Represents a failed index search. ... A String for linefeed LF ("\n"). ... A String for a space character. ... Deprecated...
🌐
GitHub
github.com › terasolunaorg › terasoluna-gfw › issues › 1015
[Spring 5.3.0] StringUtils#isEmpty has bean deprecated · Issue #1015 · terasolunaorg/terasoluna-gfw
November 2, 2020 - Description Part of #989 Starting with Spring 5.3.0, StringUtils#isEmpty has been deprecated. Issues: spring-projects/spring-framework#25945 Commit: spring-projects/spring-framework@621295d Possibl...
Published   Nov 02, 2020
🌐
BytePlus
byteplus.com › en › topic › 513224
Stringutils.isempty deprecated
Build better products, deliver richer experiences, and accelerate growth through our wide range of intelligent solutions. Core content of this page: Stringutils.isempty deprecated
Find elsewhere
🌐
Apache Commons
commons.apache.org › proper › commons-lang › jacoco › org.apache.commons.lang3 › StringUtils.java.html
StringUtils.java
* * <p> * A {@code null} or empty ("") CharSequence will return {@code false}. * </p> * * <pre> * StringUtils.contains(null, *) = false * StringUtils.contains("", *) = false * StringUtils.contains("abc", 'a') = true * StringUtils.contains("abc", 'z') = false * </pre> * * @param seq the CharSequence to check, may be null * @param searchChar the character to find * @return true if the CharSequence contains the search character, false if not or {@code null} string input * @since 2.0 * @since 3.0 Changed signature from contains(String, int) to contains(CharSequence, int) */ public static boolean contains(final CharSequence seq, final int searchChar) { if (isEmpty(seq)) { return false; } return CharSequenceUtils.indexOf(seq, searchChar, 0) >= 0; } /** * Tests if the CharSequence contains any character in the given set of characters.
🌐
Spring
docs.spring.io › spring-framework › docs › 5.3.31 › javadoc-api › index.html
StringUtils (Spring Framework 5.3.31 API)
JavaScript is disabled on your browser · Frame Alert · This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version
🌐
Baeldung
baeldung.com › home › java › java string › checking for empty or blank strings in java
Checking for Empty or Blank Strings in Java | Baeldung
January 8, 2024 - Furthermore, the Spring Core library provided a class named StringUtils which has a method to check if a string is empty. However, the class was deprecated in the Spring 5.3.0 version and above. It’s replaced with the ObjectUtils class.
🌐
Apache Maven
maven.apache.org › resolver-1.x › maven-resolver-util › apidocs › deprecated-list.html
Deprecated List (Maven Artifact Resolver Utilities 1.9.25 API)
org.eclipse.aether.util.StringUtils.isEmpty · (String) Deprecated since 1.5.0 without any alternative provided.
🌐
MicroStrategy
www2.microstrategy.com › producthelp › Current › WebAPIReference › com › microstrategy › utils › StringUtils.html
StringUtils (Web API 2021)
Strips and returns the session info without message id and result code from the session ID passed in. This method is deprecated. There should be no reason to extract the session info in this way. The contents of the string are undefined and you should make no assumptions of the contents.
🌐
GitHub
github.com › apache › rocketmq-spring › issues › 495 › linked_closing_reference
Replace deprecated StringUtils.isEmpty method with ...
August 22, 2022 - The issue tracker is ONLY used for bug report and feature request. Any question or RocketMQ proposal please use our mailing lists. BUG REPORT Please describe the issue you observed: The StringUtils.isEmpty of Spring was deprecated use an...
Author   apache
🌐
Javadoc.io
javadoc.io › doc › org.springframework › spring-core › 6.0.11 › deprecated-list.html
deprecated list - spring-core 6.0.11 javadoc
Bookmarks · Latest version of org.springframework:spring-core · https://javadoc.io/doc/org.springframework/spring-core · Current version 6.0.11 · https://javadoc.io/doc/org.springframework/spring-core/6.0.11 · package-list path (used for javadoc generation -link option) · https://jav...
🌐
Apache Commons
commons.apache.org › proper › commons-lang › javadocs › api-release › org › apache › commons › lang3 › StringUtils.html
StringUtils (Apache Commons Lang 3.11 API)
StringUtils.getIfEmpty(null, () -> "NULL") = "NULL" StringUtils.getIfEmpty("", () -> "NULL") = "NULL" StringUtils.getIfEmpty(" ", () -> "NULL") = " " StringUtils.getIfEmpty("bat", () -> "NULL") = "bat" StringUtils.getIfEmpty("", () -> null) = null StringUtils.getIfEmpty("", null) = null ... defaultSupplier - the supplier of default CharSequence to return if the input is empty ("") or null, may be null ... Deprecated.
🌐
Javadoc.io
javadoc.io › doc › io.micrometer › micrometer-core › latest › io › micrometer › core › instrument › util › StringUtils.html
StringUtils - micrometer-core 1.17.0-M1 javadoc
Bookmarks · Latest version of io.micrometer:micrometer-core · https://javadoc.io/doc/io.micrometer/micrometer-core · Current version 1.17.0-M1 · https://javadoc.io/doc/io.micrometer/micrometer-core/1.17.0-M1 · package-list path (used for javadoc generation -link option) · https://jav...
🌐
Javadoc.io
javadoc.io › doc › net.sourceforge.pmd › pmd-core › 6.11.0 › net › sourceforge › pmd › util › StringUtil.html
StringUtil - pmd-core 6.11.0 javadoc
Bookmarks · Latest version of net.sourceforge.pmd:pmd-core · https://javadoc.io/doc/net.sourceforge.pmd/pmd-core · Current version 6.11.0 · https://javadoc.io/doc/net.sourceforge.pmd/pmd-core/6.11.0 · package-list path (used for javadoc generation -link option) · https://javadoc.io/d...