You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2007/03/07 20:40:43 UTC

svn commit: r515711 - /incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/EndpointSupport.java

Author: gnodet
Date: Wed Mar  7 11:40:43 2007
New Revision: 515711

URL: http://svn.apache.org/viewvc?view=rev&rev=515711
Log:
SM-871: optimizations

Modified:
    incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/EndpointSupport.java

Modified: incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/EndpointSupport.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/EndpointSupport.java?view=diff&rev=515711&r1=515710&r2=515711
==============================================================================
--- incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/EndpointSupport.java (original)
+++ incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/EndpointSupport.java Wed Mar  7 11:40:43 2007
@@ -27,15 +27,7 @@
     }
     
     public static String getKey(ServiceEndpoint endpoint) {
-        QName serviceName = endpoint.getServiceName();
-        if (serviceName == null) {
-            throw new IllegalArgumentException("Endpoint: " + endpoint + " has no serviceName defined");
-        }
-        String endpointName = endpoint.getEndpointName();
-        if (endpointName == null) {
-            throw new IllegalArgumentException("Endpoint: " + endpoint + " has no endpointName defined");
-        }
-        return getKey(serviceName, endpointName);
+        return org.apache.servicemix.jbi.servicedesc.EndpointSupport.getKey(endpoint);
     }
     
     public static String getKey(Endpoint endpoint) {