cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [5/7] git commit: In some cases, the name is null, but the URI is still correct
Date Fri, 04 Apr 2014 16:13:57 GMT
In some cases, the name is null, but the URI is still correct


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/280414bf
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/280414bf
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/280414bf

Branch: refs/heads/2.6.x-fixes
Commit: 280414bf23327f930880415a3db54c3a68b5d7f5
Parents: 5ceae72
Author: Daniel Kulp <dkulp@apache.org>
Authored: Mon Mar 31 15:28:05 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Fri Apr 4 12:04:17 2014 -0400

----------------------------------------------------------------------
 .../java/org/apache/cxf/staxutils/CachingXmlEventWriter.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/280414bf/api/src/main/java/org/apache/cxf/staxutils/CachingXmlEventWriter.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/cxf/staxutils/CachingXmlEventWriter.java b/api/src/main/java/org/apache/cxf/staxutils/CachingXmlEventWriter.java
index ac18e4c..47c48cb 100644
--- a/api/src/main/java/org/apache/cxf/staxutils/CachingXmlEventWriter.java
+++ b/api/src/main/java/org/apache/cxf/staxutils/CachingXmlEventWriter.java
@@ -27,7 +27,7 @@ import java.util.List;
 import java.util.Map;
 import java.util.Stack;
 
-
+import javax.xml.XMLConstants;
 import javax.xml.namespace.NamespaceContext;
 import javax.xml.namespace.QName;
 import javax.xml.stream.XMLEventFactory;
@@ -93,7 +93,7 @@ public class CachingXmlEventWriter implements XMLStreamWriter {
     }
 
     public void writeAttribute(String pfx, String uri, String name, String value) throws
XMLStreamException {
-        if ("xmlns".equals(pfx)) {
+        if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri)) {
             if (StringUtils.isEmpty(name)) {
                 writeDefaultNamespace(value);
             } else {


Mime
View raw message