cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1185751 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
Date Tue, 18 Oct 2011 16:47:47 GMT
Author: dkulp
Date: Tue Oct 18 16:47:47 2011
New Revision: 1185751

URL: http://svn.apache.org/viewvc?rev=1185751&view=rev
Log:
Very minor performance thing to not create an object that is immediately
discarded in some cases.

Modified:
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java?rev=1185751&r1=1185750&r2=1185751&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
(original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
Tue Oct 18 16:47:47 2011
@@ -269,10 +269,11 @@ public class HTTPTransportFactory 
                 LOG.log(Level.SEVERE, m);
                 throw new IOException(m);
             }
-            HttpDestinationFactory servletFactory = new ServletDestinationFactory();
-            HttpDestinationFactory factory = servletFactory;
+            HttpDestinationFactory factory = null;
             if (jettyFactory != null && (addr == null || addr.startsWith("http")))
{
                 factory = jettyFactory;
+            } else {
+                factory = new ServletDestinationFactory();
             }
             
             d = factory.createDestination(endpointInfo, getBus(), registry);



Mime
View raw message