tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r1369217 - /tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java
Date Fri, 03 Aug 2012 21:24:59 GMT
Author: rfeng
Date: Fri Aug  3 21:24:59 2012
New Revision: 1369217

URL: http://svn.apache.org/viewvc?rev=1369217&view=rev
Log:
Fix the entity detection

Modified:
    tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java

Modified: tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java?rev=1369217&r1=1369216&r2=1369217&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java
Fri Aug  3 21:24:59 2012
@@ -223,7 +223,11 @@ public class RESTBindingInvoker implemen
                 isEntity = false;
                 cookieParams.put(cookieParam.value(), args[i]);
             }
-            isEntity = (getAnnotation(annotations, Context.class) == null);
+
+            if(getAnnotation(annotations, Context.class) != null) {
+                isEntity = false;
+            }
+ 
             if (isEntity) {
                 entity = args[i];
             }



Mime
View raw message