summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-03-09 21:57:10 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-03-09 21:57:10 +0000
commitede23a52ed80b0fbe2a6ce0ff9abe9154a532caa (patch)
treea4327ac1ebeae7af0aa0164d3430459a86ddda4c /sca-java-2.x/trunk/modules
parent273f12231da5a409964df0a083c6da6de6d3885d (diff)
Performance tweak - for when the interface contracts are the same
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1080018 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r--sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java
index 38d9973e37..adad30c778 100644
--- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java
+++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java
@@ -600,8 +600,8 @@ public class RuntimeEndpointImpl extends EndpointImpl implements RuntimeEndpoint
InterfaceContract serviceContract = getComponentServiceInterfaceContract();
InterfaceContract bindingContract = getBindingInterfaceContract();
- if ((serviceContract != null) &&
- (bindingContract != null)){
+ if ((serviceContract != bindingContract) &&
+ (serviceContract != null) && (bindingContract != null)) {
boolean bindingHasCallback = bindingContract.getCallbackInterface() != null;