commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject cvs commit: jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/io SAXBeanWriter.java
Date Fri, 19 Jul 2002 00:54:55 GMT
mvdb        2002/07/18 17:54:55

  Modified:    betwixt/src/java/org/apache/commons/betwixt/io
                        SAXBeanWriter.java
  Log:
  Forgot to clean up old code...
  
  Revision  Changes    Path
  1.3       +6 -13     jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/io/SAXBeanWriter.java
  
  Index: SAXBeanWriter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/io/SAXBeanWriter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SAXBeanWriter.java	19 Jul 2002 00:52:41 -0000	1.2
  +++ SAXBeanWriter.java	19 Jul 2002 00:54:55 -0000	1.3
  @@ -108,8 +108,6 @@
       
       private boolean elementWaiting = false;
       
  -    private boolean isDocumentStarted = false;
  -    
       /**
        * <p> Constructor sets writer used for output.</p>
        *
  @@ -146,7 +144,7 @@
           // make sure any previous elements have been sent
           sendElementStart();
           // ok prepare for new one
  -	    elementWaiting = true;
  +        elementWaiting = true;
           attributes = new AttributesImpl();
           lastElementName = qualifiedName;
       }
  @@ -195,11 +193,6 @@
       //-------------------------------------------------------------------------    
       
       private void sendElementStart() throws SAXException {
  -        if (!this.isDocumentStarted)
  -        {
  -            contentHandler.startDocument();
  -            this.isDocumentStarted = true;
  -        }
           if (elementWaiting) {
               contentHandler.startElement("","",lastElementName,attributes);
               elementWaiting = false;
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message