cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1530350 - /cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
Date Tue, 08 Oct 2013 17:03:09 GMT
Author: sergeyb
Date: Tue Oct  8 17:03:09 2013
New Revision: 1530350

URL: http://svn.apache.org/r1530350
Log:
[CXF-5319] Minor simplification to WADLGenerator when JSON is requested

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=1530350&r1=1530349&r2=1530350&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 Oct  8 17:03:09 2013
@@ -257,7 +257,7 @@ public class WadlGenerator implements Co
         sbMain.append(sbResources.toString());
         sbMain.append("</application>");
 
-        m.getExchange().put(JAXRSUtils.IGNORE_MESSAGE_WRITERS, ignoreMessageWriters);
+        m.getExchange().put(JAXRSUtils.IGNORE_MESSAGE_WRITERS, !isJson && ignoreMessageWriters);
         Response r = Response.ok().type(type).entity(createResponseEntity(sbMain.toString(),
isJson)).build();
         context.abortWith(r);
     }



Mime
View raw message