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 07f704a20d8d980b75e299525bfbb08cd877ce43 Author: Gary Gregory <[email protected]> AuthorDate: Sun Jul 26 09:40:54 2026 -0400 Use String.isEmpty() --- .../java/org/apache/commons/jelly/tags/junit/AssertFileExistsTag.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jelly-tags/junit/src/main/java/org/apache/commons/jelly/tags/junit/AssertFileExistsTag.java b/jelly-tags/junit/src/main/java/org/apache/commons/jelly/tags/junit/AssertFileExistsTag.java index c34eacb8..7bba1964 100644 --- a/jelly-tags/junit/src/main/java/org/apache/commons/jelly/tags/junit/AssertFileExistsTag.java +++ b/jelly-tags/junit/src/main/java/org/apache/commons/jelly/tags/junit/AssertFileExistsTag.java @@ -40,7 +40,7 @@ public class AssertFileExistsTag extends AssertTagSupport public void doTag(final XMLOutput output) throws JellyTagException { String message = getBodyText(); - if (message == null || message.length() == 0) + if (message == null || message.isEmpty()) { message = "File does not exist."; }
