From fe3653c731b84352d05619c8ea5c052ba5099ece Mon Sep 17 00:00:00 2001 From: slaws Date: Thu, 14 Jan 2010 15:49:44 +0000 Subject: Remove unused line of code and correct comment git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@899256 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/core/runtime/impl/EndpointReferenceBinderImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sca-java-2.x/trunk/modules/core/src') diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java index f0a44eef23..64c28b1185 100644 --- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java +++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java @@ -204,10 +204,10 @@ public class EndpointReferenceBinderImpl implements EndpointReferenceBinder { if ((endpoints.size() == 0) && (runtime == true) ) { - // tweak to test if this could be a resolve binding. If the uri - // has come from the binding (as opposed to a reference target) - // the assume that it is. - String bindingURI = endpointReference.getBinding().getURI(); + // tweak to test if this could be a resolve binding. This is the back end of the test + // in the builder that pulls the URI out of the binding if there are no targets + // on the reference. have to wait until here to see if the binding uri matches any + // available services. If not we assume here that it's a resolved binding if (endpointReference.getStatus() == EndpointReference.WIRED_TARGET_IN_BINDING_URI){ endpointReference.getTargetEndpoint().setBinding(endpointReference.getBinding()); endpointReference.setRemote(true); -- cgit v1.2.3