avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pro...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl AbstractContainer.java
Date Wed, 05 Feb 2003 19:00:52 GMT
proyal      2003/02/05 11:00:52

  Modified:    fortress/src/java/org/apache/avalon/fortress/impl
                        AbstractContainer.java
  Log:
  Buffer needs to be at least one (to satisfy containers with no components)
  
  Revision  Changes    Path
  1.8       +2 -2      jakarta-avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/AbstractContainer.java
  
  Index: AbstractContainer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/AbstractContainer.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- AbstractContainer.java	4 Feb 2003 20:33:32 -0000	1.7
  +++ AbstractContainer.java	5 Feb 2003 19:00:52 -0000	1.8
  @@ -537,7 +537,7 @@
       {
           // go over all components
           final Iterator i = m_components.iterator();
  -        final BoundedFifoBuffer buffer = new BoundedFifoBuffer( m_components.size() );
  +        final BoundedFifoBuffer buffer = new BoundedFifoBuffer( Math.max( m_components.size(),
1 ) );
   
           ComponentHandlerEntry entry;
           while( i.hasNext() )
  
  
  

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


Mime
View raw message