avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/event/src/java/org/apache/excalibur/mpool FixedSizePool.java PoolUtil.java VariableSizePool.java BlockingFixedSizePool.java
Date Wed, 25 Sep 2002 15:50:26 GMT
bloritsch    2002/09/25 08:50:26

  Modified:    event/src/java/org/apache/excalibur/mpool FixedSizePool.java
                        PoolUtil.java VariableSizePool.java
                        BlockingFixedSizePool.java
  Log:
  Rename the method to the same name as what an object needs (recycle)
  
  Revision  Changes    Path
  1.7       +2 -2      jakarta-avalon-excalibur/event/src/java/org/apache/excalibur/mpool/FixedSizePool.java
  
  Index: FixedSizePool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/event/src/java/org/apache/excalibur/mpool/FixedSizePool.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- FixedSizePool.java	25 Sep 2002 15:47:57 -0000	1.6
  +++ FixedSizePool.java	25 Sep 2002 15:50:26 -0000	1.7
  @@ -118,7 +118,7 @@
           {
               synchronized( m_buffer )
               {
  -                m_buffer.add( PoolUtil.reset( object ) );
  +                m_buffer.add( PoolUtil.recycle( object ) );
                   m_buffer.notifyAll();
               }
           }
  
  
  
  1.2       +1 -1      jakarta-avalon-excalibur/event/src/java/org/apache/excalibur/mpool/PoolUtil.java
  
  Index: PoolUtil.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/event/src/java/org/apache/excalibur/mpool/PoolUtil.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PoolUtil.java	25 Sep 2002 15:47:57 -0000	1.1
  +++ PoolUtil.java	25 Sep 2002 15:50:26 -0000	1.2
  @@ -18,7 +18,7 @@
   
       private PoolUtil() {}
   
  -    public static Object reset( final Object obj )
  +    public static Object recycle( final Object obj )
       {
           try
           {
  
  
  
  1.4       +2 -2      jakarta-avalon-excalibur/event/src/java/org/apache/excalibur/mpool/VariableSizePool.java
  
  Index: VariableSizePool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/event/src/java/org/apache/excalibur/mpool/VariableSizePool.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- VariableSizePool.java	25 Sep 2002 15:47:57 -0000	1.3
  +++ VariableSizePool.java	25 Sep 2002 15:50:26 -0000	1.4
  @@ -145,7 +145,7 @@
           {
               synchronized( m_buffer )
               {
  -                m_buffer.add( PoolUtil.reset( pooledObject ) );
  +                m_buffer.add( PoolUtil.recycle( pooledObject ) );
               }
           }
       }
  
  
  
  1.5       +2 -2      jakarta-avalon-excalibur/event/src/java/org/apache/excalibur/mpool/BlockingFixedSizePool.java
  
  Index: BlockingFixedSizePool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/event/src/java/org/apache/excalibur/mpool/BlockingFixedSizePool.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- BlockingFixedSizePool.java	25 Sep 2002 15:47:57 -0000	1.4
  +++ BlockingFixedSizePool.java	25 Sep 2002 15:50:26 -0000	1.5
  @@ -195,7 +195,7 @@
               {
                   if ( m_buffer.size() < m_maxSize )
                   {
  -                    m_buffer.add( PoolUtil.reset( object ) );
  +                    m_buffer.add( PoolUtil.recycle( object ) );
                       m_semaphore.notify();
                   }
                   else
  
  
  

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