axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r392131 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ArrayParamWriter.java
Date Fri, 07 Apr 2006 00:20:48 GMT
Author: nadiramra
Date: Thu Apr  6 17:20:48 2006
New Revision: 392131

URL: http://svn.apache.org/viewcvs?rev=392131&view=rev
Log:
Format code so more readable - align braces, etc.

Modified:
    webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ArrayParamWriter.java

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ArrayParamWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ArrayParamWriter.java?rev=392131&r1=392130&r2=392131&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ArrayParamWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ArrayParamWriter.java
Thu Apr  6 17:20:48 2006
@@ -43,6 +43,7 @@
     {
         super(wscontext, type);
     }
+    
     /* (non-Javadoc)
      * @see org.apache.axis.wsdl.wsdl2ws.SourceWriter#writeSource()
      */
@@ -50,19 +51,15 @@
     {
         try
         {
-            this.writer =
-                new BufferedWriter(new FileWriter(getFilePath(), false));
-            writeClassComment();
+            this.writer = new BufferedWriter(new FileWriter(getFilePath(), false));
             
+            writeClassComment();            
             writer.write("#include \"" + classname + ".hpp\"\n\n");
             this.writeMethods();
             writer.flush();
             writer.close();
             if (WSDL2Ws.verbose)
-            {
-                System.out.println(
-                    getFilePath().getAbsolutePath() + " created.....");
-            }
+                System.out.println(getFilePath().getAbsolutePath() + " created.....");
         }
         catch (IOException e)
         {
@@ -78,15 +75,12 @@
     {
         this.writeConstructors();
         this.writeDestructors();
-        
-            this.writeSetMethod();
-            this.writeGetMethod();
-            this.writeCloneMethod();
-            this.writeClearMethod();
+        this.writeSetMethod();
+        this.writeGetMethod();
+        this.writeCloneMethod();
+        this.writeClearMethod();
     }
 
-    
-    
     /**
      * @throws WrapperFault
      * 
@@ -261,29 +255,19 @@
      */
     protected File getFilePath(boolean useServiceName) throws WrapperFault
     {
-        String targetOutputLocation =
-            this.wscontext.getWrapInfo().getTargetOutputLocation();
+        String targetOutputLocation = this.wscontext.getWrapInfo().getTargetOutputLocation();
         if (targetOutputLocation.endsWith("/"))
-        {
-            targetOutputLocation =
-                targetOutputLocation.substring(
-                    0,
-                    targetOutputLocation.length() - 1);
-        }
+            targetOutputLocation = targetOutputLocation.substring(0,targetOutputLocation.length()
- 1);
+
         new File(targetOutputLocation).mkdirs();
 
-        String fileName =
-            targetOutputLocation + "/" + classname + CUtils.CPP_CLASS_SUFFIX;
+        String fileName = targetOutputLocation + "/" + classname + CUtils.CPP_CLASS_SUFFIX;
 
         if (useServiceName)
         {
-            fileName =
-                targetOutputLocation
-                    + "/"
+            fileName = targetOutputLocation + "/"
                     + this.wscontext.getSerInfo().getServicename()
-                    + "_"
-                    + classname
-                    + CUtils.CPP_HEADER_SUFFIX;
+                    + "_" + classname + CUtils.CPP_HEADER_SUFFIX;
         }
 
         return new File(fileName);



Mime
View raw message