cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1081537 - in /cxf/branches/2.3.x-fixes: ./ common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
Date Mon, 14 Mar 2011 19:37:05 GMT
Author: dkulp
Date: Mon Mar 14 19:37:04 2011
New Revision: 1081537

URL: http://svn.apache.org/viewvc?rev=1081537&view=rev
Log:
Merged revisions 1081536 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1081536 | dkulp | 2011-03-14 15:35:19 -0400 (Mon, 14 Mar 2011) | 2 lines
  
  Fix from Ondrej Scecina applied relating to element.setPrefix with an
  empty string being undefined behavior.
........

Modified:
    cxf/branches/2.3.x-fixes/   (props changed)
    cxf/branches/2.3.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java

Propchange: cxf/branches/2.3.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.3.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.3.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java?rev=1081537&r1=1081536&r2=1081537&view=diff
==============================================================================
--- cxf/branches/2.3.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
(original)
+++ cxf/branches/2.3.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
Mon Mar 14 19:37:04 2011
@@ -956,7 +956,7 @@ public final class StaxUtils {
             case XMLStreamConstants.START_ELEMENT: {
                 elementCount++;
                 Element e = doc.createElementNS(reader.getNamespaceURI(), reader.getLocalName());
-                if (reader.getPrefix() != null) {
+                if (!StringUtils.isEmpty(reader.getPrefix())) {
                     e.setPrefix(reader.getPrefix());
                 }       
                 e = (Element)parent.appendChild(e);



Mime
View raw message