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

    Use String.isEmpty()
---
 core/src/main/java/org/apache/commons/jelly/parser/XMLParser.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/java/org/apache/commons/jelly/parser/XMLParser.java 
b/core/src/main/java/org/apache/commons/jelly/parser/XMLParser.java
index e29b6499..1316a48d 100644
--- a/core/src/main/java/org/apache/commons/jelly/parser/XMLParser.java
+++ b/core/src/main/java/org/apache/commons/jelly/parser/XMLParser.java
@@ -494,7 +494,7 @@ public class XMLParser extends DefaultHandler {
                         final String attributeName = list.getLocalName(i);
                         // Fix for JELLY-184 where the xmlns attributes have a 
blank name and cause
                         //     an exception later on
-                        if (attributeName.length() == 0) {
+                        if (attributeName.isEmpty()) {
                             continue;
                         }
                         final String attributeValue = list.getValue(i);

Reply via email to