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 d11819e1f1b83f5c378ff10a891d1bdeae0de362 Author: Gary Gregory <[email protected]> AuthorDate: Sun Jul 26 09:40:55 2026 -0400 Use String.isEmpty() --- .../main/java/org/apache/commons/jelly/tags/junit/AssertTagSupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jelly-tags/junit/src/main/java/org/apache/commons/jelly/tags/junit/AssertTagSupport.java b/jelly-tags/junit/src/main/java/org/apache/commons/jelly/tags/junit/AssertTagSupport.java index 79af4a15..6985da01 100644 --- a/jelly-tags/junit/src/main/java/org/apache/commons/jelly/tags/junit/AssertTagSupport.java +++ b/jelly-tags/junit/src/main/java/org/apache/commons/jelly/tags/junit/AssertTagSupport.java @@ -354,7 +354,7 @@ public abstract class AssertTagSupport extends XPathTagSupport { * @throws JellyAssertionFailedError to signify failure */ 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 {
