commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-commons/digester/src/java/org/apache/commons/digester Digester.java
Date Wed, 14 Nov 2001 20:38:24 GMT
craigmcc    01/11/14 12:38:24

  Modified:    digester/src/java/org/apache/commons/digester Digester.java
  Log:
  The change to bodyTexts pushing and popping is not just for debugging --
  it's needed to avoid stepping on the previous contents as well.
  
  Revision  Changes    Path
  1.26      +6 -6      jakarta-commons/digester/src/java/org/apache/commons/digester/Digester.java
  
  Index: Digester.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/Digester.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- Digester.java	2001/11/14 19:54:05	1.25
  +++ Digester.java	2001/11/14 20:38:24	1.26
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/Digester.java,v
1.25 2001/11/14 19:54:05 craigmcc Exp $
  - * $Revision: 1.25 $
  - * $Date: 2001/11/14 19:54:05 $
  + * $Header: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/Digester.java,v
1.26 2001/11/14 20:38:24 craigmcc Exp $
  + * $Revision: 1.26 $
  + * $Date: 2001/11/14 20:38:24 $
    *
    * ====================================================================
    *
  @@ -108,7 +108,7 @@
    *
    * @author Craig McClanahan
    * @author Scott Sanders
  - * @version $Revision: 1.25 $ $Date: 2001/11/14 19:54:05 $
  + * @version $Revision: 1.26 $ $Date: 2001/11/14 20:38:24 $
    */
   
   public class Digester extends DefaultHandler {
  @@ -750,7 +750,7 @@
           }
   
   	// Recover the body text from the surrounding element
  -	bodyText = (StringBuffer) bodyTexts.pop();
  +	bodyText = new StringBuffer((String) bodyTexts.pop());
           if (debug >= 4)
               log("  Popping body text '" + bodyText.toString() + "'");
   
  @@ -920,7 +920,7 @@
                   qName + ")");
   
   	// Save the body text accumulated for our surrounding element
  -	bodyTexts.push(bodyText);
  +	bodyTexts.push(bodyText.toString());
           if (debug >= 4)
               log("  Pushing body text '" + bodyText.toString() + "'");
   	bodyText.setLength(0);
  
  
  

--
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