cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1524195 - /cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
Date Tue, 17 Sep 2013 19:55:49 GMT
Author: sergeyb
Date: Tue Sep 17 19:55:48 2013
New Revision: 1524195

URL: http://svn.apache.org/r1524195
Log:
[CXF-5285] Always returning a modifiable map from WSDLGenerator getLocationsMap

Modified:
    cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java

Modified: cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java?rev=1524195&r1=1524194&r2=1524195&view=diff
==============================================================================
--- cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
(original)
+++ cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
Tue Sep 17 19:55:48 2013
@@ -1456,11 +1456,12 @@ public class WadlGenerator implements Co
                                                     UriInfo ui) {
             Map<String, String> nsMap = Collections.singletonMap("xs", Constants.URI_2001_SCHEMA_XSD);
             String[] locations = source.getValues("/*/xs:" + elementName + "/@schemaLocation",
nsMap);
+            
+            Map<String, String> locs = new HashMap<String, String>();
             if (locations == null) {
-                return Collections.emptyMap();
+                return locs;
             }
 
-            Map<String, String> locs = new HashMap<String, String>();
             for (String loc : locations) {
                 try {
                     URI uri = URI.create(loc);



Mime
View raw message