From commits-return-31679-apmail-cxf-commits-archive=cxf.apache.org@cxf.apache.org Mon Mar 31 21:07:06 2014 Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A7EAA10F43 for ; Mon, 31 Mar 2014 21:07:06 +0000 (UTC) Received: (qmail 27364 invoked by uid 500); 31 Mar 2014 21:06:58 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 27260 invoked by uid 500); 31 Mar 2014 21:06:57 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 27241 invoked by uid 99); 31 Mar 2014 21:06:55 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2014 21:06:55 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 086D391A25C; Mon, 31 Mar 2014 21:06:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dkulp@apache.org To: commits@cxf.apache.org Date: Mon, 31 Mar 2014 21:06:55 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/2] git commit: In some cases, the name is null, but the URI is still correct 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 Authored: Mon Mar 31 15:28:05 2014 -0400 Committer: Daniel Kulp 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 {