minchau     2003/05/28 08:05:11

  Modified:    java/src/org/apache/xml/utils BoolStack.java
  Log:
  Added a clear() method to clear a BoolStack, so that such a 
  stack can be re-used without the need to create a new one
  (for performance).
  Submitted by: Brian Minchau
  
  Revision  Changes    Path
  1.8       +9 -0      xml-xalan/java/src/org/apache/xml/utils/BoolStack.java
  
  Index: BoolStack.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/utils/BoolStack.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- BoolStack.java    30 Jan 2003 18:46:19 -0000      1.7
  +++ BoolStack.java    28 May 2003 15:05:11 -0000      1.8
  @@ -106,6 +106,15 @@
     }
   
     /**
  +   * Clears the stack.
  +   *
  +   */
  +  public final void clear()
  +  {
  +     m_index = -1;
  +  }
  +
  +  /**
      * Pushes an item onto the top of this stack.
      *
      *
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to