You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by co...@apache.org on 2001/10/28 07:32:04 UTC
cvs commit: jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/cache DefaultCache.java
colus 01/10/27 23:32:03
Modified: src/scratchpad/org/apache/avalon/excalibur/cache
DefaultCache.java
Log:
Fixed bug for validation.
Revision Changes Path
1.3 +2 -7 jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/cache/DefaultCache.java
Index: DefaultCache.java
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/cache/DefaultCache.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DefaultCache.java 2001/08/19 07:44:51 1.2
+++ DefaultCache.java 2001/10/28 06:32:03 1.3
@@ -39,7 +39,7 @@
synchronized ( m_store )
{
- if ( containsKey( key ) )
+ if ( m_store.containsKey( key ) )
{
oldValue = remove( key );
}
@@ -100,12 +100,7 @@
{
boolean contains;
- synchronized ( m_store )
- {
- contains = m_store.containsKey( key );
- }
-
- return contains;
+ return ( null != get( key ) );
}
public void clear()
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>