cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1433062 - in /cxf/branches/2.5.x-fixes: ./ common/common/src/main/java/org/apache/cxf/staxutils/transform/OutTransformWriter.java common/common/src/test/java/org/apache/cxf/staxutils/resources/AddRequestIn3.xml
Date Mon, 14 Jan 2013 19:17:28 GMT
Author: ay
Date: Mon Jan 14 19:17:28 2013
New Revision: 1433062

URL: http://svn.apache.org/viewvc?rev=1433062&view=rev
Log:
Merged revisions 1433050 via  svn merge from
https://svn.apache.org/repos/asf/cxf/branches/2.6.x-fixes

........
  r1433050 | ay | 2013-01-14 20:05:58 +0100 (Mon, 14 Jan 2013) | 17 lines
  
  Merged revisions 1433043 via  svn merge from
  https://svn.apache.org/repos/asf/cxf/branches/2.7.x-fixes
  
  ........
    r1433043 | ay | 2013-01-14 20:01:08 +0100 (Mon, 14 Jan 2013) | 9 lines
    
    Merged revisions 1433033 via  svn merge from
    https://svn.apache.org/repos/asf/cxf/trunk
    
    ........
      r1433033 | ay | 2013-01-14 19:50:13 +0100 (Mon, 14 Jan 2013) | 1 line
      
      [CXF-4753] stax outTransform cannot deep-drop an element hat has some attributs
    ........
    
  ........
  
........

Modified:
    cxf/branches/2.5.x-fixes/   (props changed)
    cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/transform/OutTransformWriter.java
    cxf/branches/2.5.x-fixes/common/common/src/test/java/org/apache/cxf/staxutils/resources/AddRequestIn3.xml

Propchange: cxf/branches/2.5.x-fixes/
            ('svn:mergeinfo' removed)

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

Modified: cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/transform/OutTransformWriter.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/transform/OutTransformWriter.java?rev=1433062&r1=1433061&r2=1433062&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/transform/OutTransformWriter.java
(original)
+++ cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/transform/OutTransformWriter.java
Mon Jan 14 19:17:28 2013
@@ -410,6 +410,10 @@ public class OutTransformWriter extends 
     @Override
     public void writeAttribute(String prefix, String uri, String local, String value) 
         throws XMLStreamException {
+        if (matchesDropped(false)) {
+            return;
+        }
+        
         QName expected = attributesMap.get(new QName(uri, local, prefix));
         if (expected != null) {
             if (TransformUtils.isEmptyQName(expected)) {
@@ -427,6 +431,9 @@ public class OutTransformWriter extends 
 
     @Override
     public void writeAttribute(String local, String value) throws XMLStreamException {
+        if (matchesDropped(false)) {
+            return;
+        }
         String uri = XMLConstants.NULL_NS_URI;
         QName expected = attributesMap.get(new QName("", local));
         if (expected != null) {

Modified: cxf/branches/2.5.x-fixes/common/common/src/test/java/org/apache/cxf/staxutils/resources/AddRequestIn3.xml
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/common/common/src/test/java/org/apache/cxf/staxutils/resources/AddRequestIn3.xml?rev=1433062&r1=1433061&r2=1433062&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/common/common/src/test/java/org/apache/cxf/staxutils/resources/AddRequestIn3.xml
(original)
+++ cxf/branches/2.5.x-fixes/common/common/src/test/java/org/apache/cxf/staxutils/resources/AddRequestIn3.xml
Mon Jan 14 19:17:28 2013
@@ -21,6 +21,6 @@
   <params>
     <param><i1>1</i1></param>
     <param><i2>2</i2></param>
-    <param><i3>3</i3></param>
+    <param><i3 a3="v3">3</i3></param>
   </params>
 </payload>



Mime
View raw message