diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-10-15 17:47:13 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-10-15 17:47:13 +0000 |
commit | 118f0185f9de7c16eb39d349a6f3316f504fe941 (patch) | |
tree | b092b702d3b689c80ab9ec01ec81376f2c0c6ed9 /sca-java-2.x/trunk/modules | |
parent | 4f66e17b36cf23a25d3930927aecc113633a611b (diff) |
Remove duplicate test
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1023039 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r-- | sca-java-2.x/trunk/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/sca-java-2.x/trunk/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java b/sca-java-2.x/trunk/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java index 12b312ffb7..7f33b0545e 100644 --- a/sca-java-2.x/trunk/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java +++ b/sca-java-2.x/trunk/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java @@ -308,17 +308,15 @@ public class JavaInterfaceIntrospectorImpl { private boolean jaxwsAsyncMethod(Method method) { if (method.getName().endsWith("Async")) { - if (method.getName().endsWith("Async")) { - if (method.getReturnType().isAssignableFrom(Future.class)) { - if (method.getParameterTypes().length > 0) { - if (method.getParameterTypes()[method.getParameterTypes().length-1].isAssignableFrom(AsyncHandler.class)) { - return true; - } + if (method.getReturnType().isAssignableFrom(Future.class)) { + if (method.getParameterTypes().length > 0) { + if (method.getParameterTypes()[method.getParameterTypes().length-1].isAssignableFrom(AsyncHandler.class)) { + return true; } } - if (method.getReturnType().isAssignableFrom(Response.class)) { - return true; - } + } + if (method.getReturnType().isAssignableFrom(Response.class)) { + return true; } } return false; |