cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1384259 - /cxf/trunk/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/JAXRSContainer.java
Date Thu, 13 Sep 2012 09:58:15 GMT
Author: sergeyb
Date: Thu Sep 13 09:58:15 2012
New Revision: 1384259

URL: http://svn.apache.org/viewvc?rev=1384259&view=rev
Log:
Check for encoded '=' characters, may be needed when rep map has media types with parameters

Modified:
    cxf/trunk/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/JAXRSContainer.java

Modified: cxf/trunk/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/JAXRSContainer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/JAXRSContainer.java?rev=1384259&r1=1384258&r2=1384259&view=diff
==============================================================================
--- cxf/trunk/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/JAXRSContainer.java
(original)
+++ cxf/trunk/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/JAXRSContainer.java
Thu Sep 13 09:58:15 2012
@@ -246,6 +246,9 @@ public class JAXRSContainer extends Abst
             int pos = typeToClasses[i].indexOf("=");
             if (pos != -1) {
                 String type = typeToClasses[i].substring(0, pos);
+                if (type.contains("%3D")) {
+                    type = type.replace("%3D", "=");
+                }
                 String clsName = typeToClasses[i].substring(pos + 1);
                 typeMap.put(type, clsName);
             }



Mime
View raw message