avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/event DefaultQueue.java
Date Fri, 21 Dec 2001 16:14:20 GMT
colus       01/12/21 08:14:20

  Modified:    src/scratchpad/org/apache/avalon/excalibur/event
                        DefaultQueue.java
  Log:
  Use VariableSizeBuffer instead of removed AvalonBuffer.
  
  Revision  Changes    Path
  1.7       +5 -4      jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/event/DefaultQueue.java
  
  Index: DefaultQueue.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/event/DefaultQueue.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DefaultQueue.java	2001/12/19 22:29:43	1.6
  +++ DefaultQueue.java	2001/12/21 16:14:20	1.7
  @@ -7,7 +7,8 @@
    */
   package org.apache.avalon.excalibur.event;
   
  -import org.apache.avalon.excalibur.collections.AvalonBuffer;
  +import org.apache.avalon.excalibur.collections.Buffer;
  +import org.apache.avalon.excalibur.collections.VariableSizeBuffer;
   import org.apache.avalon.excalibur.concurrent.Mutex;
   
   /**
  @@ -18,7 +19,7 @@
    */
   public final class DefaultQueue extends AbstractQueue
   {
  -    private final AvalonBuffer m_elements;
  +    private final Buffer    m_elements;
       private final Mutex     m_mutex;
       private       int       m_reserve;
       private final int       m_maxSize;
  @@ -29,12 +30,12 @@
   
           if ( size > 0 )
           {
  -            m_elements = new AvalonBuffer( size );
  +            m_elements = new VariableSizeBuffer( size );
               maxSize = size;
           }
           else
           {
  -            m_elements = new AvalonBuffer();
  +            m_elements = new VariableSizeBuffer();
               maxSize = -1;
           }
   
  
  
  

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


Mime
View raw message