avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: avalon-sandbox/cache/src/java/org/apache/excalibur/cache/impl DefaultCache.java
Date Sun, 18 May 2003 11:11:23 GMT
colus       2003/05/18 04:11:23

  Modified:    cache/src/java/org/apache/excalibur/cache/impl
                        DefaultCache.java
  Log:
  do not hit when key is not exist.
  Submitted by:	Peake,Chris <Chris.Peake@ca.com>
  
  Revision  Changes    Path
  1.3       +4 -1      avalon-sandbox/cache/src/java/org/apache/excalibur/cache/impl/DefaultCache.java
  
  Index: DefaultCache.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/cache/src/java/org/apache/excalibur/cache/impl/DefaultCache.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DefaultCache.java	22 Mar 2003 12:59:47 -0000	1.2
  +++ DefaultCache.java	18 May 2003 11:11:23 -0000	1.3
  @@ -113,7 +113,10 @@
           }
   
           final Object value = m_store.get( key );
  -        m_policy.hit( key );
  +        if (null != value)
  +        {
  +            m_policy.hit( key );
  +        }
   
           return value;
       }
  
  
  

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


Mime
View raw message