You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2014/04/02 08:26:13 UTC
[17/21] git commit: In some cases, the name is null,
but the URI is still correct
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/881ef57d
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/881ef57d
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/881ef57d
Branch: refs/heads/2.7.x-fixes
Commit: 881ef57d33bc047187fdf85b75dba957a45be13b
Parents: 29960cf
Author: Daniel Kulp <dk...@apache.org>
Authored: Mon Mar 31 15:28:05 2014 -0400
Committer: Daniel Kulp <dk...@apache.org>
Committed: Wed Apr 2 02:17:59 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/881ef57d/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 {