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 1a4915310e30537e73b2211ca4cd16f4d8f8d8b3
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jul 26 09:40:54 2026 -0400

    Use String.isEmpty()
---
 .../java/org/apache/commons/jelly/tags/junit/AssertFileContainsTag.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/jelly-tags/junit/src/main/java/org/apache/commons/jelly/tags/junit/AssertFileContainsTag.java
 
b/jelly-tags/junit/src/main/java/org/apache/commons/jelly/tags/junit/AssertFileContainsTag.java
index c6ae8df0..dbb9fe23 100644
--- 
a/jelly-tags/junit/src/main/java/org/apache/commons/jelly/tags/junit/AssertFileContainsTag.java
+++ 
b/jelly-tags/junit/src/main/java/org/apache/commons/jelly/tags/junit/AssertFileContainsTag.java
@@ -50,7 +50,7 @@ public class AssertFileContainsTag extends AssertTagSupport
             throw new MissingAttributeException("match");
         }
         String message = getBodyText();
-        if (message == null || message.length() == 0)
+        if (message == null || message.isEmpty())
         {
             message = "File does not contain '" + match + "'";
         }

Reply via email to