avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/cache DefaultCache.java
Date Sun, 28 Oct 2001 06:32:04 GMT
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:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message