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/mina-vysper.git


The following commit(s) were added to refs/heads/master by this push:
     new cf2f704d Use String#isEmpty()
cf2f704d is described below

commit cf2f704d014c885b06f196cf6cd00217bd630bc8
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Nov 28 12:36:24 2023 -0500

    Use String#isEmpty()
---
 nbxml/src/main/java/org/apache/vysper/xml/fragment/Renderer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nbxml/src/main/java/org/apache/vysper/xml/fragment/Renderer.java 
b/nbxml/src/main/java/org/apache/vysper/xml/fragment/Renderer.java
index ac2057e2..21cc8c55 100644
--- a/nbxml/src/main/java/org/apache/vysper/xml/fragment/Renderer.java
+++ b/nbxml/src/main/java/org/apache/vysper/xml/fragment/Renderer.java
@@ -136,7 +136,7 @@ public class Renderer {
 
     private void renderAttribute(StringBuilder buffer, Attribute attribute, 
ResolverNamespaceResolver nsResolver) {
         String qname;
-        if (!attribute.getNamespaceUri().equals("")) {
+        if (!attribute.getNamespaceUri().isEmpty()) {
             // attribute is in a namespace, resolve prefix
             qname = nsResolver.resolvePrefix(attribute.getNamespaceUri()) + 
":" + attribute.getName();
         } else {

Reply via email to