You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/11/28 16:11:50 UTC
(commons-jelly) branch master updated: Use String#isEmpty()
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jelly.git
The following commit(s) were added to refs/heads/master by this push:
new ef9543b3 Use String#isEmpty()
ef9543b3 is described below
commit ef9543b3261c97088078b30410cc68bab4c0c9e4
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Nov 28 11:11:46 2023 -0500
Use String#isEmpty()
---
.../org/apache/commons/jelly/parser/DefaultNamespaceFilter.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/core/src/main/java/org/apache/commons/jelly/parser/DefaultNamespaceFilter.java b/core/src/main/java/org/apache/commons/jelly/parser/DefaultNamespaceFilter.java
index bc376ee6..97bfb1b4 100644
--- a/core/src/main/java/org/apache/commons/jelly/parser/DefaultNamespaceFilter.java
+++ b/core/src/main/java/org/apache/commons/jelly/parser/DefaultNamespaceFilter.java
@@ -56,7 +56,7 @@ public class DefaultNamespaceFilter extends XMLFilterImpl {
java.lang.String uri)
throws SAXException {
- if (uri.equals("")) {
+ if (uri.isEmpty()) {
super.startPrefixMapping(prefix, this.uriDefault);
} else {
super.startPrefixMapping(prefix, uri);
@@ -79,7 +79,7 @@ public class DefaultNamespaceFilter extends XMLFilterImpl {
Attributes atts)
throws SAXException {
- if (uri.equals("")) {
+ if (uri.isEmpty()) {
super.startElement(this.uriDefault, localName, qName, atts);
} else {
super.startElement(uri, localName, qName, atts);
@@ -99,7 +99,7 @@ public class DefaultNamespaceFilter extends XMLFilterImpl {
@Override
public void endElement(String namespaceURI, String localName, String qName)
throws SAXException {
- if (namespaceURI.equals("")) {
+ if (namespaceURI.isEmpty()) {
super.endElement(this.uriDefault, localName, qName);
} else {
super.endElement(namespaceURI, localName, qName);