servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r513678 - /incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/xfire/ServiceFactoryHelper.java
Date Fri, 02 Mar 2007 09:31:40 GMT
Author: gnodet
Date: Fri Mar  2 01:31:36 2007
New Revision: 513678

URL: http://svn.apache.org/viewvc?view=rev&rev=513678
Log:
SM-862: Possible when @WebMethod return an empty string for the operation name

Modified:
    incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/xfire/ServiceFactoryHelper.java

Modified: incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/xfire/ServiceFactoryHelper.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/xfire/ServiceFactoryHelper.java?view=diff&rev=513678&r1=513677&r2=513678
==============================================================================
--- incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/xfire/ServiceFactoryHelper.java
(original)
+++ incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/xfire/ServiceFactoryHelper.java
Fri Mar  2 01:31:36 2007
@@ -197,7 +197,8 @@
             Annotation[] annotations = method.getAnnotations();
             for (int i = 0; i < annotations.length; i++) {
                 if (annotations[i] instanceof WebMethod) {
-                    if (((WebMethod) annotations[i]).operationName() != null) {
+                    if (((WebMethod) annotations[i]).operationName() != null &&
+                        ((WebMethod) annotations[i]).operationName().length() > 0) {
                         return ((WebMethod) annotations[i]).operationName();
                     }
                 }



Mime
View raw message