commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: svn commit: r780905 - /commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
Date Tue, 02 Jun 2009 08:43:16 GMT
What about the Cursors? Don't these need to be reset to null as well?

On 02/06/2009, psteitz@apache.org <psteitz@apache.org> wrote:
> Author: psteitz
>  Date: Tue Jun  2 02:01:22 2009
>  New Revision: 780905
>
>  URL: http://svn.apache.org/viewvc?rev=780905&view=rev
>  Log:
>  Ensure that clear() fully clears the pool.
>
>  Modified:
>     commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
>
>  Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
>  URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java?rev=780905&r1=780904&r2=780905&view=diff
>  ==============================================================================
>  --- commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
(original)
>  +++ commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
Tue Jun  2 02:01:22 2009
>  @@ -1293,6 +1293,7 @@
>              }
>          }
>          destroy(toDestroy);
>  +        _poolMap.clear();
>      }
>
>      /**
>  @@ -1403,7 +1404,7 @@
>                      }
>                  }
>              }
>  -
>  +            c.clear();
>          }
>      }
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message