cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1154149 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AegisJSONProvider.java
Date Fri, 05 Aug 2011 09:50:09 GMT
Author: sergeyb
Date: Fri Aug  5 09:50:08 2011
New Revision: 1154149

URL: http://svn.apache.org/viewvc?rev=1154149&view=rev
Log:
[CXF-3704] Minor fix to AegisJSONProvider

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AegisJSONProvider.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AegisJSONProvider.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AegisJSONProvider.java?rev=1154149&r1=1154148&r2=1154149&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AegisJSONProvider.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AegisJSONProvider.java
Fri Aug  5 09:50:08 2011
@@ -139,7 +139,7 @@ public final class AegisJSONProvider<T> 
         // the namespace map. Oh, the namespace map.
         // This is wrong, but might make unit tests pass until we redesign.
         if (typeToRead != null) {
-            namespaceMap.put(typeToRead.getSchemaType().getNamespaceURI(), "ns1");
+            namespaceMap.putIfAbsent(typeToRead.getSchemaType().getNamespaceURI(), "ns1");
         }
         return JSONUtils.createStreamReader(is, readXsiType, namespaceMap);
     }



Mime
View raw message