tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r571858 - /incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CallbackInterfaceInterceptor.java
Date Sat, 01 Sep 2007 19:04:57 GMT
Author: rfeng
Date: Sat Sep  1 12:04:56 2007
New Revision: 571858

URL: http://svn.apache.org/viewvc?rev=571858&view=rev
Log:
Change the test per Simon's suggestion

Modified:
    incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CallbackInterfaceInterceptor.java

Modified: incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CallbackInterfaceInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CallbackInterfaceInterceptor.java?rev=571858&r1=571857&r2=571858&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CallbackInterfaceInterceptor.java
(original)
+++ incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CallbackInterfaceInterceptor.java
Sat Sep  1 12:04:56 2007
@@ -39,12 +39,11 @@
 
     public Message invoke(Message msg) {
         CallableReference<?> callableReference = msg.getCallableReference();
-        if (callableReference instanceof ServiceReference) {
-            if (((ServiceReference<?>)callableReference).getCallback() == null) {
-                throw new NoRegisteredCallbackException("Callback target does not implement
the callback interface");
-            }
+        if (callableReference instanceof ServiceReference && ((ServiceReference<?>)callableReference).getCallback()
!= null) {
+            return next.invoke(msg);
+        } else {
+            throw new NoRegisteredCallbackException("Callback target does not implement the
callback interface");
         }
-        return next.invoke(msg);
     }
 
     public void setNext(Invoker next) {



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message