cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [1/2] git commit: In some cases, the name is null, but the URI is still correct
Date Mon, 31 Mar 2014 21:06:55 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 6d5598ccd -> ee7ade9e4


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/b36e977a
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/b36e977a
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/b36e977a

Branch: refs/heads/master
Commit: b36e977a6f63c8b8e094d6b2873d257221802e9a
Parents: 6d5598c
Author: Daniel Kulp <dkulp@apache.org>
Authored: Mon Mar 31 15:28:05 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Mon Mar 31 15:28:05 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/b36e977a/core/src/main/java/org/apache/cxf/staxutils/CachingXmlEventWriter.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/staxutils/CachingXmlEventWriter.java b/core/src/main/java/org/apache/cxf/staxutils/CachingXmlEventWriter.java
index ac18e4c..47c48cb 100644
--- a/core/src/main/java/org/apache/cxf/staxutils/CachingXmlEventWriter.java
+++ b/core/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