This is an automated email from the ASF dual-hosted git repository. garydgregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-jelly.git
commit 8afb65f1ec6558bf69945eceef663e952aa3c429 Author: Gary Gregory <[email protected]> AuthorDate: Sun Jul 26 09:40:54 2026 -0400 Use String.isEmpty() --- .../test/java/org/apache/commons/jelly/tags/junit/AssertTagSupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/org/apache/commons/jelly/tags/junit/AssertTagSupport.java b/core/src/test/java/org/apache/commons/jelly/tags/junit/AssertTagSupport.java index 1c0ed6a2..1aa5cca2 100644 --- a/core/src/test/java/org/apache/commons/jelly/tags/junit/AssertTagSupport.java +++ b/core/src/test/java/org/apache/commons/jelly/tags/junit/AssertTagSupport.java @@ -41,7 +41,7 @@ public abstract class AssertTagSupport extends XPathTagSupport { * Produces a failure assertion with the given message and added detail. */ protected void fail(final String message, final String detail) throws JellyAssertionFailedError { - if (message == null || message.length() == 0) { + if (message == null || message.isEmpty()) { fail(detail); } else {
