cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r559762 - in /incubator/cxf/trunk/tools/wsdlto: frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/impl.vm test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
Date Thu, 26 Jul 2007 09:08:48 GMT
Author: ema
Date: Thu Jul 26 02:08:47 2007
New Revision: 559762

URL: http://svn.apache.org/viewvc?view=rev&rev=559762
Log:
[CXF-362] Improved code style for generate impl class

Modified:
    incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/impl.vm
    incubator/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java

Modified: incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/impl.vm
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/impl.vm?view=diff&rev=559762&r1=559761&r2=559762
==============================================================================
--- incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/impl.vm
(original)
+++ incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/impl.vm
Thu Jul 26 02:08:47 2007
@@ -42,23 +42,13 @@
                       
 public class ${intf.Name}Impl implements $intf.Name {
 
-    private static final Logger LOG = 
-        Logger.getLogger(${intf.Name}Impl.class.getPackage().getName());
+    private static final Logger LOG = Logger.getLogger(${intf.Name}Impl.class.getPackage().getName());
 
 #foreach ($method in $intf.Methods)
     /* (non-Javadoc)
      * @see $intf.PackageName.$intf.Name#${method.Name}(#foreach ($parameter in $method.Parameters)$parameter.ClassName
 $parameter.Name #if ($velocityCount != $method.getParameters().size()),#end)#end*
      */
-    public $method.return.ClassName ${method.Name}(#if($method.ParameterListWithoutAnnotation.size()
== 0))#end
-#if($method.ParameterListWithoutAnnotation.size() != 0)
-
-#foreach ($param in ${method.ParameterListWithoutAnnotation})
-        $param
-#end
-    )#end
-#if($method.Exceptions.size() > 0) throws #foreach($exception in $method.Exceptions)$exception.ClassName
#if($velocityCount != $method.Exceptions.size()),#end #end #end
-
-    { 
+    public $method.return.ClassName ${method.Name}(#if($method.ParameterListWithoutAnnotation.size()
== 0))#end#if($method.ParameterListWithoutAnnotation.size() != 0)#foreach($param in ${method.ParameterListWithoutAnnotation})$param#end)#end#if($method.Exceptions.size()
> 0) throws #foreach($exception in $method.Exceptions)$exception.ClassName #if($velocityCount
!= $method.Exceptions.size()),#end #end #end { 
         LOG.info("Executing operation $method.Name");
 #foreach ($parameter in $method.Parameters)
 #if ($parameter.Style.toString() == "IN")

Modified: incubator/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java?view=diff&rev=559762&r1=559761&r2=559762
==============================================================================
--- incubator/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
(original)
+++ incubator/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
Thu Jul 26 02:08:47 2007
@@ -605,7 +605,7 @@
             fail("exception should be thrown");
         } catch (Exception e) {
             assertTrue("Fail to create java parameter exception should be thrown",
-                       e.getMessage().indexOf("Fail to create java parameter") > -1);
+                       e.getMessage().indexOf("Failed to create java parameter") > -1);
         }
 
     }



Mime
View raw message