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

    Use String.isEmpty()
---
 .../src/main/java/org/apache/commons/jelly/tags/regexp/RegexpTag.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/jelly-tags/regexp/src/main/java/org/apache/commons/jelly/tags/regexp/RegexpTag.java
 
b/jelly-tags/regexp/src/main/java/org/apache/commons/jelly/tags/regexp/RegexpTag.java
index bdc27678..0e246b42 100644
--- 
a/jelly-tags/regexp/src/main/java/org/apache/commons/jelly/tags/regexp/RegexpTag.java
+++ 
b/jelly-tags/regexp/src/main/java/org/apache/commons/jelly/tags/regexp/RegexpTag.java
@@ -38,7 +38,7 @@ public abstract class RegexpTag extends TagSupport {
     @Override
     public void doTag(final XMLOutput output) throws 
MissingAttributeException, JellyTagException {
         // Check required properties
-        if (getText() == null || getText().length() == 0) {
+        if (getText() == null || getText().isEmpty()) {
             throw new MissingAttributeException("text must be provided");
         }
 
@@ -46,7 +46,7 @@ public abstract class RegexpTag extends TagSupport {
             throw new MissingAttributeException("expr must be provided");
         }
 
-        if (var == null || var.length() == 0) {
+        if (var == null || var.isEmpty()) {
             throw new MissingAttributeException("var must be provided");
         }
 

Reply via email to