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 VariableSizePool.java
Date Mon, 30 Sep 2002 17:55:09 GMT
bloritsch    2002/09/30 10:55:09

  Modified:    event/src/java/org/apache/excalibur/mpool
                        VariableSizePool.java
  Log:
  Apply patch from Corey Jewett so that we don't rely on try/catch
  
  Revision  Changes    Path
  1.5       +3 -7      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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- VariableSizePool.java	25 Sep 2002 15:50:26 -0000	1.4
  +++ VariableSizePool.java	30 Sep 2002 17:55:09 -0000	1.5
  @@ -108,16 +108,12 @@
   
           Object object = null;
   
  -        try
  +        synchronized( m_buffer )
           {
  -            synchronized( m_buffer )
  +            if ( m_buffer.size() > 0 )
               {
                   object = m_buffer.remove();
               }
  -        }
  -        catch( BufferUnderflowException bue )
  -        {
  -            object = newInstance();
           }
   
           if( null == object )
  
  
  

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