abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r518039 - in /incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/cache: CachedResponse.java CachedResponseBase.java lru/LRUCache.java
Date Wed, 14 Mar 2007 06:39:55 GMT
Author: jmsnell
Date: Tue Mar 13 23:39:53 2007
New Revision: 518039

URL: http://svn.apache.org/viewvc?view=rev&rev=518039
Log:
fix a typo in the API and some simple formatting stuff

Modified:
    incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/cache/CachedResponse.java
    incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/cache/CachedResponseBase.java
    incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/cache/lru/LRUCache.java

Modified: incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/cache/CachedResponse.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/cache/CachedResponse.java?view=diff&rev=518039&r1=518038&r2=518039
==============================================================================
--- incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/cache/CachedResponse.java
(original)
+++ incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/cache/CachedResponse.java
Tue Mar 13 23:39:53 2007
@@ -21,7 +21,7 @@
 
 public interface CachedResponse extends ClientResponse {
 
-  CacheKey geKey();
+  CacheKey getKey();
   
   Cache getCache();
   

Modified: incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/cache/CachedResponseBase.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/cache/CachedResponseBase.java?view=diff&rev=518039&r1=518038&r2=518039
==============================================================================
--- incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/cache/CachedResponseBase.java
(original)
+++ incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/cache/CachedResponseBase.java
Tue Mar 13 23:39:53 2007
@@ -36,7 +36,7 @@
     this.cache = cache;
   }
   
-  public CacheKey geKey() {
+  public CacheKey getKey() {
     return key;
   }
 

Modified: incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/cache/lru/LRUCache.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/cache/lru/LRUCache.java?view=diff&rev=518039&r1=518038&r2=518039
==============================================================================
--- incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/cache/lru/LRUCache.java
(original)
+++ incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/cache/lru/LRUCache.java
Tue Mar 13 23:39:53 2007
@@ -42,9 +42,8 @@
     setMap(
       new LinkedHashMap<CacheKey,CachedResponse>(size,0.75f,true) {
         @Override
-        protected boolean removeEldestEntry(Map.Entry<CacheKey,
-                                                      CachedResponse> eldest)
-        {
+        protected boolean removeEldestEntry(
+          Map.Entry<CacheKey,CachedResponse> eldest) {
           return size() > size;
         }
       }



Mime
View raw message