cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1461881 - in /cxf/branches/2.7.x-fixes: ./ api/src/main/java/org/apache/cxf/staxutils/transform/DelegatingNamespaceContext.java
Date Wed, 27 Mar 2013 22:21:05 GMT
Author: ay
Date: Wed Mar 27 22:21:05 2013
New Revision: 1461881

URL: http://svn.apache.org/r1461881
Log:
Merged revisions 1461878 via  svn merge from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1461878 | ay | 2013-03-27 23:17:19 +0100 (Wed, 27 Mar 2013) | 1 line
  
  remove the unnecessary put op
........

Modified:
    cxf/branches/2.7.x-fixes/   (props changed)
    cxf/branches/2.7.x-fixes/api/src/main/java/org/apache/cxf/staxutils/transform/DelegatingNamespaceContext.java

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

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

Modified: cxf/branches/2.7.x-fixes/api/src/main/java/org/apache/cxf/staxutils/transform/DelegatingNamespaceContext.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/api/src/main/java/org/apache/cxf/staxutils/transform/DelegatingNamespaceContext.java?rev=1461881&r1=1461880&r2=1461881&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/api/src/main/java/org/apache/cxf/staxutils/transform/DelegatingNamespaceContext.java
(original)
+++ cxf/branches/2.7.x-fixes/api/src/main/java/org/apache/cxf/staxutils/transform/DelegatingNamespaceContext.java
Wed Mar 27 22:21:05 2013
@@ -81,7 +81,9 @@ class DelegatingNamespaceContext impleme
             for (Map<String, String> nss : namespaces) {
                 String ns = nss.get(prefix);
                 if (ns != null) {
-                    cache.put(prefix, ns);
+                    if (cache != nss) {
+                        cache.put(prefix, ns);
+                    }
                     return ns;
                 }
             }
@@ -115,7 +117,9 @@ class DelegatingNamespaceContext impleme
             for (Map<String, String> pfs : prefixes) {
                 String prefix = pfs.get(ns);
                 if (prefix != null && ns.equals(getNamespaceURI(prefix))) {
-                    cache.put(ns, prefix);
+                    if (pfs != cache) {
+                        cache.put(ns, prefix);
+                    }
                     return prefix;
                 }
             }



Mime
View raw message