You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ve...@apache.org on 2005/07/13 08:05:11 UTC

cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava JavaBeanWriter.java

venkat      2005/07/12 23:05:11

  Modified:    java/src/org/apache/axis/wsdl/toJava JavaBeanWriter.java
  Log:
  Fix for AXIS-1667 - Minor changes for making the multi-line comments for member fields and accessor methods pretty and aligned.
  
  Revision  Changes    Path
  1.79      +4 -5      ws-axis/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java
  
  Index: JavaBeanWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java,v
  retrieving revision 1.78
  retrieving revision 1.79
  diff -u -r1.78 -r1.79
  --- JavaBeanWriter.java	9 Jul 2005 17:05:44 -0000	1.78
  +++ JavaBeanWriter.java	13 Jul 2005 06:05:11 -0000	1.79
  @@ -545,9 +545,9 @@
               // Declare the bean element
               if (comments != null && comments.trim().length() > 0)
               {
  -                String flatComments = getJavadocDescriptionPart(comments, false).substring(3);
  +                String flatComments = getJavadocDescriptionPart(comments, true).substring(7);
                   // it will be flat if it fits on one line
  -                pw.println("    /** " + flatComments.trim() + " */");
  +                pw.println("    /* " + flatComments.trim() + " */");
               }
               pw.print("    private " + typeName + " " + variable + ";");
   
  @@ -557,9 +557,8 @@
               } else {
                   pw.println();
               }
  +            pw.println();
           }
  -
  -        pw.println();
       }
   
       
  @@ -975,7 +974,7 @@
                   get = "is";
               }
   
  -            String comment = getJavadocDescriptionPart(documentation, false);
  +            String comment = getJavadocDescriptionPart(documentation, true);
               if (comment.length() > 3) {
                   // remove the " *" at the front of the first line
                   comment = comment.substring(2);