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 0fb115946e71869647f4b81d611d03dc3ea81f55 Author: Gary Gregory <[email protected]> AuthorDate: Sun Jul 26 09:40:54 2026 -0400 Use String.isEmpty() --- .../java/org/apache/commons/jelly/tags/junit/AssertFileNotFoundTag.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jelly-tags/junit/src/main/java/org/apache/commons/jelly/tags/junit/AssertFileNotFoundTag.java b/jelly-tags/junit/src/main/java/org/apache/commons/jelly/tags/junit/AssertFileNotFoundTag.java index 382456dd..eac569f9 100644 --- a/jelly-tags/junit/src/main/java/org/apache/commons/jelly/tags/junit/AssertFileNotFoundTag.java +++ b/jelly-tags/junit/src/main/java/org/apache/commons/jelly/tags/junit/AssertFileNotFoundTag.java @@ -40,7 +40,7 @@ public class AssertFileNotFoundTag 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 exists."; }
