axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/encoding SerializationContext.java
Date Sat, 04 Aug 2001 13:37:26 GMT
rubys       01/08/04 06:37:26

  Modified:    java/src/org/apache/axis/encoding SerializationContext.java
  Log:
  Omit trailing newline at the end of the document.
  
  Revision  Changes    Path
  1.27      +4 -3      xml-axis/java/src/org/apache/axis/encoding/SerializationContext.java
  
  Index: SerializationContext.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/SerializationContext.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- SerializationContext.java	2001/08/04 03:50:55	1.26
  +++ SerializationContext.java	2001/08/04 13:37:26	1.27
  @@ -359,9 +359,10 @@
             indent--;
             for (int i=0; i<indent; i++) writer.write(' ');
           }
  -        StringBuffer buf = new StringBuffer();
  -        buf.append("</" + elementQName + ">\n");
  -        writer.write(buf.toString());
  +        writer.write("</");
  +        writer.write(elementQName);
  +        writer.write('>');
  +        if (indent>0) writer.write('\n');
           writer.flush();
           onlyXML=true;
       }
  
  
  

Mime
View raw message